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
Solved

Visual Studio design view applying unwanted conditional comment CSS content

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

How our DevOps Teams Maximize Uptime

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us. Read the use case whitepaper.

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…
In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

856 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