CSS is compatible with all browsers with a div with a minimum height and adaptability. cssdiv

Source: Internet
Author: User

CSS is compatible with all browsers with a div with a minimum height and adaptability. cssdiv

CSS is compatible with all browsers with the smallest and adaptive div:
Sometimes we want to give the div A minimum height. If the content does not reach this minimum height, the div will be displayed at the minimum height. If the content exceeds this minimum height, the adaptive effect will be realized, although the min-height attribute is currently available, not all browsers support this attribute, especially for earlier ie browsers. Below is a code example that is compatible with all browsers.
The Code is as follows:

 

<! DOCTYPE html> 

 

The above code implements this requirement, which is relatively simple and can be applied directly.
Related reading:
1. For details about the min-height attribute, see the min-height attribute in CSS.
2 .! For more information about important attributes, see CSS! Important syntax rule 1.

The original address is: http://www.softwhy.com/forum.php? Mod = viewthread & tid = 11567.

For more information, see: http://www.softwhy.com/divcss/

 

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.