Advertisement

07.17.2008 at 02:46AM PDT, ID: 23572575
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

8.2

How do I completely disable Visual Studio 2005 from writing inline style attributes?

Asked by alupkaman in Visual Studio, Cascading Style Sheets (CSS), Microsoft Visual Studio Express

Tags: , ,

I use external css style sheets for virtually every style attribute (for a web page). How do I get Visual Studio to completely stop inserting attributes such as style="width:100px"

when I insert a table for example, or work in design view, if I accidentally move anything, VS writes positioning attributes. If I want to insert an inline style, I'll do it myself, but I don't want VS constantly writing width attributes, which override my style sheet for the table, cell, etc. I'm tired of going through every column and removing these because I accidentally bumped something in design view.

I have already tried in Visual Studio, Tools=>Options=>HTML Designer=?CSS Positioning

I have tried unchecking the box completely for positioning attributes. And I have tried checking the box and choosing "no positioning attribute"

This doesn't do anything to solve my problem...does this option even do anything, since the behavior seems to be the same no matter what I check.

So, how do I turn off positioning attributes completely in Visual Studio?? So that if I bump something in design view, such as working with item templates in a form view, there will be no inline styles added?

I can't believe this would even be the default behavior. I understand there are certain situations where inline styles are useful, but 98% of my styles and layouts are defined in the appropriate classes in the external style sheet. So that I can modify everything in one place. It seems counterintuitive to the whole idea of CSS to default to inline styles, since this approach is pretty much the same as the old HTML formatting attributes.

I'm using Visual Studio 2005 Professional Edition.

Kevin ThomasStart Free Trial
[+][-]07.17.2008 at 06:01AM PDT, ID: 22024894

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Visual Studio, Cascading Style Sheets (CSS), Microsoft Visual Studio Express
Tags: Microsoft, Visual Studio, 2005
Sign Up Now!
Solution Provided By: TheLearnedOne
Participating Experts: 1
Solution Grade: B
 
 
[+][-]07.17.2008 at 07:14AM PDT, ID: 22025663

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628