CSS font-size dialogue! Feb22 '05

Feedback

# (1 of 2): Amanda

1 year, 4 months after the fact. (Wed 05 Jul 2006, 7:39 AM CST)

Aha, yes this should work as expected, but I have, in many cases still had the same results with the font size being screwy. Not so much with the "h" tags, but when I use tables. (I know, I know, TABLES??!! ...only when necessary lol) Anyway, when I have defined a font size (using em) in the body tag, it doesn’t seem to carry over when using tables. This, my friend, is a real pain because then I have to go back into my style sheet and add the font size property to the table tag.

Oh, and forget about nested tables. If you build a table inside of a table, you get the same thing...font size shrinks. It really makes a case for figuring out the best way to go tableless in all your layouts!!

# (2 of 2): Matthom

1 year, 4 months after the fact. (Wed 05 Jul 2006, 8:21 AM CST)

Yeah, nested tables will cause some headaches with CSS, that’s for sure.

Is the font-size smaller for tables, you’re saying? I think I’ve come across that too. I don’t remember exactly how it was mended, but I imagine it could be fixed by just setting the table font-size to 1em:

table tr th,
table tr td
{
    font-size: 1em;
}

Again, it could be a different problem all together.

Overall, though, I agree. Dealing with fonts inside a table always seems to throw some weird stuff out there.

Previous comment Return to entry

RSS feed for comments on this post

Leave feedback

Feedback

Input format: The editor controls below will assist with Markdown syntax.

Status

Sub-status

Your info

Return to entry.

When you use percentages to adjust the font size of an element with a pre–defined size, the percentage is based on the parent element – not the pre–defined size.

You are at the feedback permalink page for: CSS font-size dialogue!

Read more...