A summary of several problems in CSS Web page layout-Experience Exchange

Source: Internet
Author: User
One, less use of biased doors.

Similar to Break-word line breaks, Z-index manual layering, as well as vertical alignment, and so on these biased CSS is best less useful, because not all browsers are supported, and extremely difficult to pass the web detection.

  Second, the center is not the value of float.

Many novices mistakenly think of center as a value of float, but that's not the case. Center is just a text-align value.

  Third, the alignment cannot include two values.

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

  Four, scroll bar color is best not to customize.

Many browsers do not normally recognize the scroll bars of custom colors, and many custom colors do not pass through the web.

  Five, separate scroll bar settings.

Now often use overflow-x (horizontal scroll bar) or overflow-y (vertical scroll bar), in setting this time will often find that not all the client has the effect, you can set the best in the body and HTML at the same time set. However, this CSS is not supported by CSS2.1 (CSS2.1 supports overflow, while defining a horizontal scrollbar) until CSS3 supports this definition. Use as little as possible.

  Six, background and color are the same colors will be warned.

  • 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.