Several issues in CSS Web page layout Note _ Experience Exchange

Source: Internet
Author: User
One, less to use the door.

Like Break-word line breaks, Z-index manual layering, and vertical alignment, and so on, these partial-door CSS is best to use, because not all browsers are supported, and it is extremely difficult to pass the Internet.

  Second, center is not a float value.

Many beginners mistake Center for the value of float, but that is not the case. Center is just a text-align value.

  Three, alignment cannot include two values.

Many beginners fill in two values in float or text-align, such as Float:left top. This is not allowed and is not recognized by browsers.

  Four, the scroll bar color is best not to customize.

Many browsers do not normally recognize a custom color scroll bar, and many custom colors are not able to pass through the consortium.

  Five, separate scroll bar settings.

Now often use overflow-x (horizontal scroll bar) or overflow-y (vertical scroll bar), in the setting of this will often find that not all of the client has effect, everyone in the setting when the body and the HTML is best to set. However, this CSS is not supported by CSS2.1 (CSS2.1 supports overflow and defines horizontal scroll bars) until CSS3 supports this definition. Try to use less.

  Six, background and color colors are subject to warning.

Related Article

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.