![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hello I've started using CSS more in the last couple of weeks and in the last week I've started using em units. Are there any rulers I download that can show measurements in em units or is there another way of showing a graphical representation of em units in a simple manner. I know that an em unit is based on the size of the default font in the body of the web page |
#3
| ||||
| ||||
|
|
I've started using CSS more in the last couple of weeks and in the last week I've started using em units. |
|
Are there any rulers I download that can show measurements in em units or is there another way of showing a graphical representation of em units in a simple manner. |
|
I know that an em unit is based on the size of the default font in the body of the web page |
|
and I've been placing temporary coloured borders in containers to get a visual representation of what they look like with different em measurements but I'm wasting a lot of time with trial and error doing it that way. |
#4
| |||
| |||
|
|
Peter Mount <info (AT) petermount (DOT) au.com> wrote: Are there any rulers I download that can show measurements in em units or is there another way of showing a graphical representation of em units in a simple manner. You can set the dimensions of an element in em units and use a border to make the dimensions visible. You might also set background color. The following shows a 1em by 1em square (the famous em square - but to be exact, the borders are not part of the square, only the content is): div style= "width: 1em; height: 1em; line-height: 1; border: solid black 1px"></div |
#5
| |||
| |||
|
|
I've started using CSS more in the last couple of weeks and in the last week I've started using em units. |
|
Are there any rulers I download that can show measurements in em units or is there another way of showing a graphical representation of em units in a simple manner. |
|
I know that an em unit is based on the size of the default font in the body of the web page |
#6
| |||
| |||
|
|
This is a misleading statement requiring clarification. |
|
The EM is not a "unit" |
|
Generally, the EM (or EM "space") is the width and height of the capital M |
#7
| |||
| |||
|
|
Gus Richter <gusrichter (AT) netscape (DOT) net> wrote: [...] Generally, the EM (or EM "space") is the width and height of the capital M We've seen such disinformation here several times, and also correct information. Do we really go through this again? See e.g. http://home2.swipnet.se/%7Ew-20547/s...graph1-en.html (I guess there's a newer version somewhere. |
|
And I think this might be eligible for inclusion into the FAQ... |
#8
| |||
| |||
|
|
Gus Richter <gusrichter (AT) netscape (DOT) net> wrote: This is a misleading statement requiring clarification. Well, that's true in a sense - but as applies to your own statements. |
|
The EM is not a "unit" By CSS specifications, it is a unit in CSS. |
|
Generally, the EM (or EM "space") is the width and height of the capital M We've seen such disinformation here several times, and also correct information. Do we really go through this again? See e.g. http://home2.swipnet.se/%7Ew-20547/s...graph1-en.html (I guess there's a newer version somewhere. And I think this might be eligible for inclusion into the FAQ. Although the CSS specifications make clear that the em is a unit, they don't define it very clearly.) |
#9
| |||
| |||
|
| http://www.css.nu/articles/typograph1-en.html And I think this might be eligible for inclusion into the FAQ... I'm working on it. |
#10
| ||||
| ||||
|
|
By CSS specifications, it is a unit in CSS. An unfortunate use of the term |
|
which did not consider the Unit "space". |
|
I therefore call it a "value" which it actually is, |
|
Disinformation? The cap M has no relationship to the EM space? |
![]() |
| Thread Tools | |
| Display Modes | |
| |