CSS Web Design tips: Ul Li highly incompatible problem solving method

Source: Internet
Author: User
Tags object

Article Introduction: In the ul of Li's height in IE6, IE7, IE8, FF under the incompatibility Question solution method.

In the page sometimes use the UL Li list when IE6, IE7, IE8, FF height will be different (which IE6 and IE7 height, IE8 and ff height), set high after using Overflow:hidden; and it doesn't matter, this question has been bothering me, So that I can only use div to do the list, but this can only be dealt with, but not from the actual solution to the problem.

Later found a way on the internet, in the Li style plus vertical-align:bottom will be solved, but the reason is still not understand, hope to see friends can give a reasonable explanation, thank you!

I checked the CSS Help document, which describes the vertical-align as follows:

Grammar:

Vertical-align:auto baseline Sub Super top text-top Middle bottom text-bottom length

Take value:

Auto:css1 the object content according to the value of the Layout-flow property
Baseline:css1 default value. Align the contents of an object that supports the valign attribute to the baseline
SUB:CSS1 Subscript for vertical aligned
Superscript of vertical aligned SUPER:CSS1
Top:css1 aligns the content objects of objects that support valign attributes to the top
Text-top:css1 aligns the text of an object that supports valign attributes to the top of the object
Middle:css1 aligns the contents of objects that support valign attributes to the middle of the object
Bottom:css1 aligns the contents of objects that support valign attributes to the bottom of the object
Text-bottom:css1 aligns the text of an object that supports valign attributes to the top of the object
Length:css2 a percentage of the length value consisting of floating-point numbers and unit identifiers. can be negative. Defines the offset from the baseline. The baseline is 0 for the number and 0% for the percentage. See also unit length. The current IE has not yet implemented this parameter

Description

Sets or retrieves the vertical alignment of the contents of the object.
The default value for this property is auto for the Currentstyle object. For other objects it is baseline.
This property is read-only for Currentstyle objects. is writable for other objects.
The corresponding script attribute is verticalalign.



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.