i was wondering if you can do a CSS if statement so it its IE do this else FF do this. only if statements i've seen are for the older version on IE
no, sometimes it might be a pain in the ass to have your css work with both IE and FF, but if you know how that can be fixed pretty fast, and instead of that if statement you can use javascript to detected browser and then you can lets say have 2 sepearate css files one for each browser, detect it with javascript and then use css according to browser i thought about doing it that way many times, but so far i was able to make my css work with all browser maybe this helps?! regards
You can use an IF statement using ASP, you have to use the <% user_agent = request.servervariables("HTTP_USER_AGENT") response.write("The browser you are using is: " & user_agent) %> to get the browser, so your if statement will look for IE and you can then load the correct CSS file
put this code somewhere in the html file <!--[if lte IE 6]> ..css code <![endif]--> if the browser is IE6 or lower, the page will load everything within the if statement
^ you can also do [if IE], [if lte IE7], [if gt IE6]... it's pretty flexible but are only for IE. As far as I know, except with CSS hacking, you can't say if Opera do this and if FF do that.