![]() |
|
|||||||
| General Help General Help and Q&A for Open-Realty® v2.x |
![]() |
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
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. |
|
#2
|
|||
|
|||
|
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?
|
|
#3
|
||||
|
||||
|
put your content on multiple lines ie..
{ CODE } This will be the same for other code such as javascripts etc that use curly brackets |
|
#4
|
|||
|
|||
|
Thanks Mick. That seems so obvious now that you point it out.
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|