View Full Version : Mozilla text
Brian M
November 8th, 2007, 11:18 PM
As a relative newbie to web design I was playing around with different font sizes.
px, pt, em & % all worked as they should with Internet Explorer 7 but when viewed with Mozilla
all text appeared the same standard size no matter what attribute I applied.
Can someone provide advice on how to correct this problem?
Thanks in advance.
Brian
rockboy
November 9th, 2007, 08:30 AM
I can't think of any reason it wouldn't display properly. What kind of coding are you using to specify font sizes? Can you post a link to an online page or some of the code to look at?
Brian M
November 9th, 2007, 09:22 AM
The text sizes are defined in a style sheet.
This is my current code for 4 sizes of text.
p#1 { font-size:10pt;}
p#2 { font-size:20pt;}
p#3 { font-size:30pt;}
p#4 { font-size:40pt;}
I tried changing from id to class but it made no difference in Mozilla.
IE7 is perfect no matter how I code it.
Brian M
November 9th, 2007, 08:13 PM
Discovered that my previous post may hold the answer.
Mozilla Firefox is quite simply ignoring any CSS.
Could it be anything to do with my version of Firefox? :
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8.1.9) Gecko/20071025 Firefox/2.0.0.9
rockboy
November 9th, 2007, 08:42 PM
Mozilla/Firefox won't recognize an id that starts with a number. Try using an alpha character (a to z) as the first character in the id name instead of a number.
Brian M
November 9th, 2007, 08:51 PM
I had no idea that would cause a problem in one browser and not the other.
I live and learn thanks again to CTH.
Especially rockboy.
Thanks a lot mate - problem solved.