logo-dw

Go Back   Dreamweaver Club Forums > Hand Coders Forum > HTML and CSS
Register FAQ Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
Old 07-06-2012, 03:00 PM   #1
Oaryx
 
Join Date: Jul 2012
Posts: 2
Default Conditional comments - help!

Hi everyone,

This may be a silly questions, since I'm relatively new to web development.
However, I need to use conditional comments in order to display different css files depending upon the browser. I've done this and it works fine when I preview it in the browser. However, my client wants to be able to see the actual layout of the page (the css, etc) when she's editing content in Dreamweaver in the design view. Since conditional comments are - from what I understand - recognized by Dreamweaver as comments themselves, the template obviously does not show in the design view. Is there any solution to this? When I remove the conditional comments everything displays fine, but I can't very well ask my client to remove and add the comments back every time she wants to edit.

Thanks so much!
Oaryx is offline   Reply With Quote
Old 07-06-2012, 03:44 PM   #2
domedia
Administrator
domedia's Avatar
 
Join Date: Dec 2003
Posts: 9,730
Default

This extension might be old, not sure, but it should enable support in DW for IE conditional statements:
http://www.adobe.com/cfusion/exchang...&extid=1564018
domedia is offline   Reply With Quote
Old 07-06-2012, 06:03 PM   #3
Oaryx
 
Join Date: Jul 2012
Posts: 2
Default Thank you!!!

You're a life saver. It works perfectly. Thank you so much. ^_^
Oaryx is offline   Reply With Quote
Old 07-18-2012, 10:27 AM   #4
jmichae3
 
Join Date: Dec 2010
Posts: 366
Default

conditional comments are being dropped in IE10 along with a number of other IE-specific features.
__________________
------------
Jim Michaels
HTML Code:
improperly<strong>nested<em>elements</strong>cause</em>
browser confusion (I believe the term is 'tag soup')!
jmichae3 is offline   Reply With Quote
Old 07-18-2012, 10:34 AM   #5
jmichae3
 
Join Date: Dec 2010
Posts: 366
Default

I forgot to mention that there is a meta tag you can include to drop ie10 back to simulating ie9.
IE Conditional Comments

Code:
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE9" />
__________________
------------
Jim Michaels
HTML Code:
improperly<strong>nested<em>elements</strong>cause</em>
browser confusion (I believe the term is 'tag soup')!
jmichae3 is offline   Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:29 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Copyright 2006 DreamweaverClub.com