Use example of Li tags in HTML _ HTML/Xhtml _ webpage Creation

Source: Internet
Author: User
This article mainly introduces the use example of the Li tag in HTML, which is used to align the title and date of the Article. If you want to align the title on the left, the date is in the right alignment. When float: right is directly added to the span of the date, both IE8 and FF are OK, but IE6/7 will wrap the line. A simple and effective solution is provided below.

Copy XML/HTML Code to clipboard

    • 2011-12-2Web Developer Network (admindomain.com)
    • 2011-12-2Web Developer Network (admindomain.com)
    • 2011-12-2Web Developer Network (admindomain.com)

Note: You need to write the span to the front of the Li label so that the right alignment of the date in the span can be ensured in versions earlier than IE6, IE7, and FF3.5.

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.