Open-Realty® Support Forum

Go Back   Open-Realty® Support Forum > Open-Realty 2.0 - Community Support > General Help

General Help General Help and Q&A for Open-Realty® v2.x

Reply
 
Thread Tools Display Modes
  #1  
Old 10-17-2006, 11:31 PM
runemedia runemedia is offline
OR Hatchling
 
Join Date: Oct 2006
Posts: 3
runemedia is on a distinguished road
Default Escape curly brace for IE conditional comment

Hello. I'm trying to use an IE conditional comment to accommodate browser CSS differences. The syntax is the following:

<!--[if lte IE 7]>
<style>
#mydiv {width:100px}
</style>
<![endif]-->

I'm putting this in the <head> of the main.html page. However, when OR processes this, it strips out the {width:100px}. So, the IE conditional comments don't work.

Is there a way to escape the curly braces {} so that OR will leave them alone? I tried the wiki and the forum but couldn't find an answer.

Thank you.
Reply With Quote
  #2  
Old 10-17-2006, 11:52 PM
runemedia runemedia is offline
OR Hatchling
 
Join Date: Oct 2006
Posts: 3
runemedia is on a distinguished road
Default Re: Escape curly brace for IE conditional comment

Well, I solved my problem by putting the IE conditional comments in an external file. Still, the question remains: can the curly braces be escaped to allow for regular HTML processing?
Reply With Quote
  #3  
Old 10-18-2006, 07:01 AM
Mick's Avatar
Mick Mick is offline
Administrator
 
Join Date: Jul 2003
Location: California
Age: 32
Posts: 4,036
Mick has much to be proud ofMick has much to be proud ofMick has much to be proud ofMick has much to be proud ofMick has much to be proud ofMick has much to be proud ofMick has much to be proud ofMick has much to be proud of
Send a message via ICQ to Mick Send a message via AIM to Mick Send a message via MSN to Mick
Default Re: Escape curly brace for IE conditional comment

put your content on multiple lines ie..
{
CODE
}

This will be the same for other code such as javascripts etc that use curly brackets


Open-Realty 2 Documentation

~The Difference Between an ORDEAL and an ADVENTURE is ATTITUDE~

Reply With Quote
  #4  
Old 10-18-2006, 06:50 PM
runemedia runemedia is offline
OR Hatchling
 
Join Date: Oct 2006
Posts: 3
runemedia is on a distinguished road
Default Re: Escape curly brace for IE conditional comment

Quote:
Originally Posted by Mick View Post
put your content on multiple lines ie..
{
CODE
}

This will be the same for other code such as javascripts etc that use curly brackets
Thanks Mick. That seems so obvious now that you point it out.
Reply With Quote
Reply

Bookmarks

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:26 AM.


Open-Realty® is a registered trademark of Transparent Technologies, Inc.
Forums Powered by: vBulletin Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Copyright Transparent Technologies, Inc. 2008