by ReFredzRate on Tue Jun 26, 2007 10:14 am
I think CSS is a great solution for making up your HTML coding, but the problem is, that it is displayed differently depending on which browser you use. For instance, if you use border lines of 1 px, IE would show the border on the outside and FF would show the border on the inside, making sure your table or div would not exceed the width you have given it. If you say you have a 800px wide table and border it in IE, the table would expand to 802px. That's basically the problem you have varying from browser to browser.
I think dazz_club has made me think about whether to use 1 stylesheet, or multiple. At the moment I think using only 1 sheet, you would still end up with different layouts depending on the browser you use. If you use multiple sheets depending on browser usage, you would be fine, since the layout would be the same, whether you use IE, Firefox, Opera, Safari, Netscape or whatever browser you would think of.
The best way is, in my humble opinion, to ask your clients for input on their browsers by using a PHP script. The script would use the browser version to choose from a list of style sheets, which would make you end up with 10 (or whatever) browsers, with 10 exactly identical layouts.
I think the script can be made with some very basic PHP. I'm not entirely sure whether JS would be suitable for this, since some internet users have that disabled. There's no way to disable PHP, so their browser would always have to respond to the question which browser is being used.