Welcome to WebmasterWorld Guest from 188.8.131.52 , register , free tools , login , search , pro membership , help , library , announcements , recent posts , open posts Pubcon Platinum Sponsor 2014
Font-size not a value? are percentages wrong? royalelephant
In my .css I have set my main body text font size to 100% and all other font sizes in proportion to it, like 87% or 120%. The W3C css validator doesn't like any of those percentages, tells me it's an error, and says they're not font-size values. How critical is this? Should I set my main body text to, say, 12pt or 12px, and leave the other percentages, or are percent values totally wrong?
Have you tried 'em'?
Like font-size: .8em;
or , font-size: .9em;
Hope this helps.
Percentages are perfectly valid for font-size: [ ...] w3.org
Perhaps your syntax is off? It might help if you posted a snippet.
FWIW, 1.0em=100% so you can substitute ems for percents in most cases without serious issues.
You could try using a descriptive size for the body text setting i.e. small, x-small etc. then make the other font sizes variants of that setting in EMS. g1smd
Did you fix it?
There must have been some other typo that affected it?
i originally wrote a post explaining the source of my real trouble, but I guess I didn't click submit when i should have...
basically, it was a simple syntax problem that my tired eyes just didn't catch until syntax was metnioned... i am now doubly embarrassed, but i won[t bore you with anymore details...
please move on to the next thread... and my thanks to everyone who offfered some help...