Common CSS bug fixes

Source: Internet
Author: User
  1. Double margin: this bug occurs in IE6 and earlier versions. When an element is floating, double margin is displayed, plus display: inline, which can be fixed.
  2. 3 pixel text movement: when the text is adjacent to the floating element, a height must be given to the text container. Height: 1%;
  3. IE6 repeated characters: The floating elements in the HTML document contain too many comments. Delete the comments;
  4. Floating cleaning may occur in IE6 when overflow: hidden is used. Floating elements in a fixed container when the size of the child elements of these floating elements exceeds overflow: when the hidden element is used, the excess part will be truncated and the absolute positioning will be used immediately. This is the best way to add additional labels and clear the floating.
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.