![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
In Yahoo YUI Grid CSS, It specified the relative width of a container (e.g. 750px) by, e.g. width : 57.6293em; /* 750 div 13 */ |
|
1. Is this the standard way to define the width if we are using relative width? |
#3
| |||
| |||
|
|
howa wrote: Huh? There is *no* such correlation between screen pixels and ems. Em is a measure of font size, which could be any value. I don't know where the 13 comes from, but it is an arbitrary number at best. |
#4
| |||
| |||
|
|
On 4月10日, 下午12時30分, Bergamot <berga... (AT) visi (DOT) com> wrote: There is *no* such correlation between screen pixels and ems. Em is a measure of font size, which could be any value. I don't know where the 13 comes from, but it is an arbitrary number at best. 13 mean the default font-size being used by YUI CSS, |
|
so the width is relative to the current font size, this is how YAHOO/YUI currently work. The advantage is when you zoom in using a larger font, the width of your container also increase. |
|
I found the above formula really work |
#5
| |||
| |||
|
|
howa wrote: On 4$B7n(B10$BF|(B, $B2<8a(B12$B;~(B30$BJ,(B, Bergamot <berga... (AT) visi (DOT) com> wrote: There is *no* such correlation between screen pixels and ems. Em is a measure of font size, which could be any value. I don't know where the 13 comes from, but it is an arbitrary number at best. 13 mean the default font-size being used by YUI CSS, So they are setting a fixed font-size, which is a bad beginning. I assume that is 13px. BTW, my default text size is 20px, with a 17px minimum. 13px is intolerably small to me. |
#6
| |||
| |||
|
|
On 4$B7n(B10$BF|(B, $B2<8a(B9$B;~(B45$BJ,(B, Bergamot <berga... (AT) visi (DOT) com> wrote: howa wrote: On 4$B7n(B10$BF|(B, $B2<8a(B12$B;~(B30$BJ,(B, Bergamot <berga... (AT) visi (DOT) com> wrote: There is *no* such correlation between screen pixels and ems. Em is a measure of font size, which could be any value. I don't know where the 13 comes from, but it is an arbitrary number at best. 13 mean the default font-size being used by YUI CSS, So they are setting a fixed font-size, which is a bad beginning. I assume that is 13px. BTW, my default text size is 20px, with a 17px minimum. 13px is intolerably small to me. Nope, default font-size is 13px, but they will use relative font size relative to this default, e.g. write 12px as 93%. |
|
Their way to use CSS is very flexible and nice with different zoom level, e.g. you can zoom in or zoom out in Yahoo.com and see. |
#7
| |||
| |||
|
|
On 4月10日, 下午9時45分, Bergamot <berga... (AT) visi (DOT) com> wrote: So they are setting a fixed font-size, which is a bad beginning. I assume that is 13px. BTW, my default text size is 20px, with a 17px minimum. 13px is intolerably small to me. Nope, default font-size is 13px |
|
, but they will use relative font size relative to this default, e.g. write 12px as 93%. |
|
Their way to use CSS is very flexible and nice with different zoom level, e.g. you can zoom in or zoom out in Yahoo.com and see. |
![]() |
| Thread Tools | |
| Display Modes | |
| |