EM calculations
Sizing text is always an important part of making a usable design. I start all my CSS files with the following rules:
html { font-size:100.01%; }
body { font-size:1em; }
The explanation for this comes from "CSS: Getting Into Good Coding Habits:"
This odd 100.01% value for the font size compensates for several browser bugs. First, setting a default body font size in percent (instead of em) eliminates an IE/Win problem with growing or shrinking fonts out of proportion if they are later set in ems in other elements. Additionally, some versions of Opera will draw a default font-size of 100% too small compared to other browsers. Safari, on the other hand, has a problem with a font-size of 101%. The current "best" suggestion is to use the 100.01% value for this property.
CSS techniques I use all the time - 0 views
-
-
I used the following calculation: 14px/16px = .875, 18px/16px = 1.125. So my default text at 1 em would translate to 16px for most users, and my small text I sized at .875em which I can trust to result in 14px for most users, while my large text I sized at 1.125em which I can trust to result in 18px
-
Safe Fluid-width Columns I work with hybrid fluid layouts all the time, usually with max-width set at anywhere from 900 to 1000px. I usually have floated columns with percentage widths, and browsers will calculate these percentage widths to whole pixel values when rendering the columns.
- ...3 more annotations...
HTML5 for Windows XP - 1 views
Best Customer Support Services for Browser Issues| Arcler Desk - 1 views
-
Are you looking for support services for browser issues like script error fixing, 404 error, connectivity issues etc? We have a dedicated team, which have extensive knowledge regarding any issue with browser. We offer very best and cost-effective customer services for any browser like Chrome, Firefox, Internet explorer, Bing, Yahoo etc. You can visit our website to get more information. Our team are available 24*7 to assist you.
‹ Previous
21 - 24 of 24
Showing 20▼ items per page