Hi all, I need differentiate FF3 to FF2 in my CSS file, someone know how? /*this is for FF*/ #search { with:97%; }
Is ff3 even out yet? I think the only way you could determine which browser would be with a javascript or php code.
Thank you very much for your answer, I'm sorry I am new with CSS. I don't understand why the position of a button is different in FF3 and FF2 To see right with FF3 POSITION: relative; TOP: -6.9em And the same to see right with FF2 POSITION: relative; TOP: -4.5em
There are no hacks that I know of to differentiate between FF2 and FF3, however I'm going to say it's the way the page was coded which is showing the differences (even if all other browsers looked the same, and even if the current code is valid). There's a page made by a colleague of mine who doesn't really code the best (HTML, he's a PHP guy really) and while the online site looked pretty much the same between all browsers, when Opera 9.5 came out, there are suddenly gaps in the page and the footer mysteriously grew to twice its height. If the code had been solid in the first place, I doubt that would have happened (that is, I don't think it's a bug in Opera9.5). Opera 9.27 does not show the gaps or any problems. www.jeansselling.nl just the main page, if you have Opera9.5 and Opera 9.27 (or just any other browser). FF3 is supposedly closer to rendering things more accurately than FF2 (with the exception of any bugs which may be present in FF3), so it may be time to just rethink all the code. Relative positioning is rather dangerous in my opinion, at least when you are using coordinates to move the thing around. It's much safer to use margins and the like.