Solved

Visual Studio design view applying unwanted conditional comment CSS content

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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

This article describes relatively difficult and non-obvious issues that are likely to arise when creating COM class in Visual Studio and deploying it by professional MSI-authoring tools. It is assumed that the reader is already familiar with the cla…
This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

746 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now