Topic: divs and textsize/accessibility (Page 1 of 1) |
|
---|---|
Obsessive-Compulsive (I) Inmate From: NZ |
posted 10-24-2003 01:26
Hello! code: #welcome{
|
Paranoid (IV) Inmate From: A graveyard of dreams |
posted 10-24-2003 01:31
You should avoid using position: absolute. When you're using absolute positions the divs position is based on the top-left of the browser, regardless of text-size. Instead use 'position: relative' or float the divs where you want them. That will create a more fluid design, that will work for different text-sizes. |
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
posted 10-24-2003 01:36
If you *do* choose to use position:absolute, base the top, left, width, and height values off of units other than pixels. Use em's instead, which change based on the font size. For example: |
Paranoid (IV) Inmate From: NZ |
posted 10-24-2003 01:44
Long time no see, mate. |
Obsessive-Compulsive (I) Inmate From: NZ |
posted 10-24-2003 02:56
Hey thanks, you guys - that's a great help |