Is it possible for me to set a variable within a conditional comment?
e.g.
The problem I have is that my webpage works fine in every other browser exept for IE6!PHP Code:<!--[if IE 6]>
<?php $myvariable = "yes" ?>
<![endif]-->
all I am trying to do is reposition a div if they use IE6
The idea I had was to set the class of the div depending on wether they are using IE6
e.g.
<div <? if ($myvariable == "yes") { print "class=\"mycssclass\""; } ?>>



Reply With Quote




Bookmarks