Hi,
I'm playing around with a navigation menu in my footer and I'm finding that
firefox is dramatically shrinking the font-size for my List Items..
Anyone know why this might happen?
It's also changing the letter spacing abit which Im not overly concerned about.
When a font-size is specified in em or percent will inherit the parent elements font size as well. So for example if you set the font-size to 100% in your list you will see it get bigger and look closer to Safari.
Thanks Aerospace, I think I understand what you're saying but I'm still abit confused.
None of the list items parent elements or divs have a font-size specified?
so why would they shrink in firefox and while the <p> tag remains a similar size?
Aerospace will probably beet me by the time I write this out but...
You can specify your font sizes in pixels, percentages, and by using 'em'.
Pixels: When you set a font size in pixels, you're telling the browser quite literally how many pixels tall the letters should be.
Percentage: This works completely different from pixels. When you use a percentage, a font size percentage tells the font how big it should be relative to another font size.
EM: EM is another relative unit of measure. You specify a scaling factor using EM.
Keywords: You can adjust font size using keywords like "small" and "x-small".
You probably already know this but it's all I can contribute. I am also quite curious on this one.
Thank Caliburn, I understand that but I still don't understand what's happening in my case. Why is firefox taking a different em size for the list items than the paragraph?
The reason I'm using em's rather than px's is because I want it to be scaleable.
Accessibility? I follow you. I am not personally seeing anything in the CSS you exampled that would be causing this. Can you possibly post the entire CSS file so I can get a better review of it please? I'm a novice so I use everything I can to learn. It's as much for me as it is for you. Now I am determined to solve this.
Sure maybe we'll both learn something
I used px's for some of my other fonts, maybe firefox is basing the em size of one of them? I have another issue with the top nav menu aswell but I was going to go back to that..
Remember I'm a novice here but the only thought that's coming into my mind is that the EM is basing off the pixels you used in some font sizing. Have you played around with that?
yeh I changed the .brownlogo and .redlogo classes to 1.2em it made no difference to the other fonts but NOW THEY ARE APPEARING DIFFERENT SIZES TO EACHOTHER!?!? hah now I'm even more confused :P
thanks for the link btw
Yeah I am a total loss on this one. I was hoping I could help you resolve it but I'm looking at the CSS right now, referring to a couple of books, and I honestly can't tell you what the problem is. I bet you it's something simple that we'll both smack ourselves in the head over once we know what it is. It looks just fine to me.
So as I told you when you specify your font size in a relative font size i.e. em or % it will inherit the parent font-size as well. You have 0.6em for your footer, then you have 0.6em for your menu that is in your footer. So rather than being 0.6em of the default browser font-size it is 0.6em of whatever 0.6em is in your footer. Read the article I gave you. It talks about inheritance.
__________________
||||If you are getting paid to do a job, don't ask for help on it!||||