![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I would appreciate some comments on a test site http://www.flipside.co.uk/~iconboy/test/ Using a CSS template but on lower resolutions, I get scrollbars (where the white meets the grey on the left) which I do not want. Any help appreciated as to why this is. Thanks |
#3
| |||
| |||
|
|
Use percents. Ems if you must. |
#4
| |||
| |||
|
|
body {margin:0; padding:0; color:#303030; background:#fafafa url(images/bodybg.gif) top left repeat-y; font:76% Verdana,Tahoma,sans-serif;} |
#5
| ||||||||
| ||||||||
|
|
Would you be able to help me with *where* I change the pixels to % as I am still new to all this CSS. |

|
ul {list-style:circle; margin:15px 0 20px 0; font-size:0.9em;} |
|
li {margin:0 0 8px 25px;} |
|
img {float:center; margin:0 15px 15px 0; padding:1px; border:0px solid #d0d0d0;} |
|
#sidebar {position:absolute; top:0; left:0; width: 220px; height:100%; overflow:auto; background:#e0e0e0 url(images/sidebarbg.gif) top right repeat-y; text-align:right;} |
|
#sidebar h1 {margin:20px 18px 0 5px; color:#008fd8; font-size:1.6em; letter-spacing:-2px; text-align:right;} |
|
#menu a {display:block; width: 202px; padding:5px 18px 5px 0; color:#606060; background:#e0e0e0 url(images/sidebarbg.gif) top right repeat-y; font-size:1.8em; font-weight:normal; text-decoration:none; letter-spacing:-2px;} |
|
#content {width: 520px; margin:0 0 0 240px; padding:20px 0; background:#fafafa;} |
#6
| |||
| |||
|
Dunno. I'm new to CSS too. But that won't stop me. This is Usenet. ![]() Basically, wherever you use px, don't. |
|
If you want space based on the text (for example, margins), use ems. |
#7
| |||
| |||
|
|
If you want space based on the text (for example, margins), use ems. See, the problem with this is that if someone is visually impaired and needs to crank up the text size way above normal, then you're going to also inflate the margins - and, as a result, waste a lot of their precious display canvas. The same goes for padding. So think about how your design is going to behave as the text size is changed, as well as how it behaves as the canvas size is changed. |

![]() |
| Thread Tools | |
| Display Modes | |
| |