Solved

Visual Studio design view applying unwanted conditional comment CSS content

Posted on 2010-08-31
1
317 Views
Last Modified: 2013-11-27
I have a conditional comment block in my master page that includes a CSS <link> intended to apply fixes to IE6 and lower.

<!--[if lt IE 7]> <link href="/css/iefix.css" rel="stylesheet" type="text/css" media="all" /> <![endif]-->

However, those CSS classes are applied in design view even though my browser is IE8.  This really messes up the design view.  Anyone know how to keep the Visual Studio designer from applying unwanted CSS within conditional comments?

(Visual Studio 2008 Professional Edition)

Thank you for your help.
0
Comment
Question by:Jeff_Carlson
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 14

Accepted Solution

by:
existenz2 earned 500 total points
ID: 33660077
The design view of VS is very limited. It easily messes things up and when doing a proper design you should look as less as possible to the design view and only in your browser. In short; You can't fix it in 2008.

Maybe that it has become better in VS2010, they supposed to have improved the designer there.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

623 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question