Solved

Visual Studio design view applying unwanted conditional comment CSS content

Posted on 2010-08-31
1
312 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

Space-Age Communications Transitions to DevOps

ViaSat, a global provider of satellite and wireless communications, securely connects businesses, governments, and organizations to the Internet. Learn how ViaSat’s Network Solutions Engineer, drove the transition from a traditional network support to a DevOps-centric model.

Question has a verified solution.

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

Suggested Solutions

IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

759 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