Re: [HEADSUP] New phpweb branch
| From: | Ross Masters | Date: | Sat, 30 Aug 2008 10:57:55 +0000 |
| Subject: | Re: [HEADSUP] New phpweb branch | ||
| Groups: | php.doc | ||
| Request: | Send a blank email to phpdoc+get-969379360@lists.php.net to get a copy of this message | ||
On Sat, Aug 30, 2008 at 05:04 AM, Daniel Convissor wrote:
It's not hard coding here. Let me explain: Using em measurements we can set a font to be proportionally bigger or smaller than the font-size for it's container. For example: body { font-size: 0.75em; } /* Set all fonts to be 0.75 * the browser size */ body h1 { font-size: 1.25em; } /* Set h1 elements to be 1.25 * it's container */ body p { font-size: 1.00em; } /* Set p elements to be the same size as it's container (0.75) */ If the end user had a visual impairment they would set their browser's font sizes to a larger setting. Because our font sizes are proportional to that setting their view of the page has larger text than someone who's browser font-size is set to normal. If we didn't set font-sizes at all all text would be the same size (assuming we're using a CSS Reset) which is pretty ugly :-) -- Ross Masters http://www.uvshock.co.uk/The font size is nowhere hardcoded. It uses em and %.That's hard coding. We shouldn't be setting it at all.