CSS in yui--grids.css

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.