This is a discussion on "A question about widths em vs px" within the Web Page Design section. This forum, and the thread "A question about widths em vs px are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
A question about widths em vs px
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
A question about widths em vs px
I am trying to make my site compatible in all browsers and am trying lo line up the form elements on my contact page.
Does anyone know the width in pixels an em is? I need to either use ems or pixels to lay out my input boxes |
|
|
|
#2
|
|||
|
|||
|
Re: A question about widths em vs px
Strictly speaking, there is no direct relationship between the two. I'm also not sure why its relevant to what you are trying to do. |
|
#3
|
||||
|
||||
|
Re: A question about widths em vs px
Yeah, ems are for font sizes, not element dimensions.
|
|
#4
|
|||
|
|||
|
Re: A question about widths em vs px
'ems' refer to the size of the letter 'M' in the font you are using (there's a similar measurement called 'exs').
As has been said, it's probably best not to use a font measurement for defining content areas. |
|
#5
|
||||
|
||||
|
Re: A question about widths em vs px
Oh I forgot! Ems are great to use for dimensions if you really want your site to be accessible. Check out this elastic layout... Change the text size in your browser and watch the whole layout expand.
http://www.csszengarden.com/?cssfile...063.css&page=0 I've implemented this concept into a site before... It's such a pain sometimes, but the outcome is worth it when it's all debugged properly. |
|
#6
|
|||
|
|||
|
Re: A question about widths em vs px
ooh, that's nice... I'll have to remember that one, thank you!
|
![]() |
| Tags |
| question, widths |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| IE6 giving me grief. Buggers up column widths. HELP! | ozzie1234 | Web Page Design | 8 | Apr 10th, 2008 09:39 |
| Advice on page widths etc | sing2trees | Web Page Design | 7 | Nov 21st, 2007 19:34 |
| 100% widths | snooper | Web Page Design | 5 | Jul 12th, 2007 12:51 |
| How to force table cell widths | AdRock | Web Page Design | 1 | Sep 7th, 2006 14:54 |
| Combining fixed and relative widths | hessodreamy | Web Page Design | 5 | Feb 10th, 2006 13:14 |