1. In grids.css, the width of the page layout is em width, because em will change the width as the user adjusts the font size (View-text size), so as to have a better user experience;
2,20.reset.css: The page font size is 13px, so the page width should be set to 13 PX. However, there is a problem in IE. If the word 1em is 13px in Firefox and other standard browsers, in IE, 13.3333px is required, and the * filter is used to set the EM width in IE. For example, if the font size of the body is 13px, set the page width to 600px, 45.00em in IE, and 46.15em in Firefox and other standard browsers.
3, note (from http://developer.yahoo.com/yui/grids)
Note:
Here are some other things to keep in mind: 1) the width is set inEmS becauseEmS scale with user-initiated font-size adjustment, and therefore provide a superior user experience. 2) Yui fonts does a good job of normalizing the width ofEm, But we're re still obliged to provide a slightly different value for IE. 3) be sureWidthValue for IE comesAfterThe value for everybody else. 4) settingMin-WidthIs optional, but helps the grid maintain integrity as the viewport shrinks. 5)Text-alignAndMarginAre used to help center the page, and shoshould not be modified.
4,
| Template Class |
Preset description |
| Yui-t1 |
Edge bar of 160px on the left |
| Yui-t2 |
180px sidebar on the left |
| Yui-t3 |
300px sidebar on the left |
| Yui-t4 |
Edge bar of 180px on the right |
| Yui-t5 |
Sidebar of 240px on the right |
| Yui-t6 |
Edge bar of 300px on the right |
5,
| special internal classes |
preset description |
| . Yui-GB |
1/3-1/3-1/3 |
| . Yui-GC |
2/3-1/3 |
| . Yui-Gd |
1/3-2/3 |
| . Yui-ge |
3/4-1/4 |
| . Yui-GF |
1/4-3/4 |