DIV layers, HTML 4.0 and CSS font sizes
Posted: (EET/GMT+2)
I did some tests today in the area of HTML layouts and font sizes.
The web site I'm working on currently uses XHTML and CSS 2 stylesheets extensively, but the problem is that Delphi 2005 (or Visual Studio .NET for that matter) doesn't like the layout -- it is too complex.
So, I converted some of the pages back to HTML 4.0, and now Delphi likes them better. Also, my research showed that there are no problems with DIV tags, which appear to work fine. So no more layouts with tables, which is fine.
However, font sizes still give me trouble. When I specify a font size in the CSS file and use the browser's View/Text Size command to change the font sizes on the fly, the change is way too dramatic in IE. But Firefox on the other hand works better.
I don't know if this is the best solution or not, but I'm thinking of using the "pt" i.e. absolute point sizes in the stylesheet. This way, the text size cannot be changed in IE, but it still works okay in Firefox.
Yes, this is something that is not recommended by the specs, but the thing is that not so many users are aware of this setting in their browsers. If somebody for some reason has the "Largest" setting in the their browser and then goes to our site, the result looks really bad. This is what I want to avoid.