[One of IE6's madness] IE6's odd-and-wide BUG

Source: Internet
Author: User

IE6 is crazy. Today, the project requires such a layout: an external relatively positioned div, an absolutely positioned inside div (right: 0 ),

However, in IE6, it turns into the right: 1px effect:

IE6 also has an odd-width bug,The solution is to change the externally positioned div width to an even number. The same is true for height.
View Source Code:

CSS code:

# Out {
Width: 609px;/* The width here is an odd number, and the bug is displayed !! Change to an even number */
Height: 300px;
Position: relative;
Background: # FF0000;
Color: # FFF;
}
# Inn {
Width: 200px;
Height: 250px;
Position: absolute;
Top: 0px;
Right: 0px;
Background: #000000;
}

XML/HTML code:

<Div id = "out">
<Div id = "inn"> This is an absolute internally positioned DIV </div>
</Div> reprinted, please note
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.