Overflow:hidden failure problem in CSS IE7 and its solving method

Source: Internet
Author: User

CSS compatible IE7:

When doing the page with negative margin center when the IE7, the parent node in the Overflow:hiden failure problem, consulted some information, summed up the solution.

Cause of the problem:

The Overflow:hidden property of the parent element is invalidated when the parent element's immediate child or subordinate child element's style has the Position:relative property.

Workaround:

We find in IE7 that child elements exceed the height set by the parent element, even if the parent element is set to Overflow:hidden.

Solving this bug is simple, using position:relative in the parent element, and solving the bug is to use the overflow parent node to increase the relative positioning.

Overflow:hidden failure problem in CSS IE7 and its solving method

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.