DIV CSS Web page layout minimum height (min-height) The magical experience of communication

Source: Internet
Author: User
Assuming there are two boxes, we need it at a minimum height of 150PX.
Background: #EEE;
IE does not maintain a minimum height of 150px
The minimum height can be set to the minimum height of a box, and when its content is low, it can keep box height as a certain
Now the effect, IE does not maintain a minimum height of 150px.
How to Solve
Set a height for IE
* HTML div.box1,* HTML div.box2{height:150px;}
The workaround for wellstyled.com is to use the CSS property selector (Attribute selectors)
div.box1,div.box2{. height:150px;
/* IE keep the minimum height by this, and extend the auto down */
/* Div object with class selector (Class) property */
IE is not supported by nature, Opera and Mozilla support, read this height. Applications: Search, articles and other pages (not using 100% height, when the search for less content, not the page is too short.
  • 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.