views:

130

answers:

2

hi i want to design a theme for postnuke cms.

and want to use css condition in the template files.

postnuke use smarty tag like

<!--[if $n eq ''] -->....<!--[/if]-->

so when i use

<!--[if lt IE 7]>....<![endif]-->

it gives some errors about tags. what can i do?

+1  A: 

Try wrapping your if comments in literal tags, in the smarty .tpl file.

{literal}
<!--[if lt IE 7]>....<![endif]-->
{/literal}

Might fix it.

Kyle Sevenoaks
A: 

This didn't work with me! Any other ideas ?

Ahmad Saeed
My bad ... I forgot to upload the IE7 css files and it's working fine now.Thanks alot
Ahmad Saeed