[Write On!]

Search Write On!

Display: Sort:
Site updates and requests for comments | 17 comments (17 topical, 0 hidden)
Allow me to clarify... (3.00/2) (#11)
by Brad Johnson on Fri May 14, 2004 at 10:06:36 AM PST

I didn't really mean that the stylesheet made it unreadable. Having a little previous experience with scoop, I assumed that it's font size selection in the display preferences dialog was based on <FONT> tags, which janra confirmed. I also assumed (wrongly) that there was a hard-coded font size in the stylesheet, which was bigger than my personal preference.

I'm a big fan of CSS and agree that they make much more sense than do font tags. I was not at all suggesting that stylesheets be trashed, but rather a method of using them in conjunction with the existing preferences.


-- The world is quiet here.
[ Parent ]
And, now that the grumpy phase is over (3.00/1) (#13)
by pkej on Fri May 14, 2004 at 11:05:30 AM PST
You can use relative sizes in style sheets "small", "large", "larger" are valid ways to set font size in a style sheet, as is "120%", "80%". These are all relative to the size set as base for the parent element; which means depending on what the size has been set before.

The best way, though, is to use "em"s which are the width of the "m" in a given font. There is a corresponding "ex" for the height of the "x" in a given font, but "ex" support is poorer than "em" support.

Everything above will scale with the scaling of your browser "ctrl"+"-" or "ctrl"+"+" in IE and deratives, or "ctrl"+mousewheel in Opera (also accepts the IE shortcuts, as does Mozilla, IIRC).

So the best solution is to use the relative measurements, as opposed to the absolute "pt" points and "px" for pixels (which is default if any value is entered without measurement unit).

It is easy to do the right thing when one knows the above stuff; what I'm grumpy about is thast a lot of people still teach the font tag, and a lot of old html pages on the net says the same, etc.

I have an idea, there should be a way to demolish unhealthy sites like old HTML tutorials. Just like it is possible to condemn buildings, we should be able to condemn old websites.

RFCxxxx - Real Time Condemnation Protocol
--
When in doubt,
turn around,
cry and shout

spdyvkng - my homepage
[ Parent ]

Site updates and requests for comments | 17 comments (17 topical, 0 hidden)
Display: Sort:
Login
Make a new account
Username:
Password: