Css div instance tutorial

Source: Internet
Author: User

After getting started with css div, let's take a look at the layout of div css, which has some advantages for table layout, but it is really difficult to make and design. Now let's take a look at the example tutorial. Let's take a look at the following results.

This is our Effect Image. The homepage is a background image, and we can use both the li label and the label on the page. Let's take a look at the div css code first, and then let's talk about the tutorial.

<H2> <Ul>
<Li> 1. 90cm X scroll merged and hang a picture </li>
<Li> 2.18x 12 inch a classic European Album </li>
<Li> 8 inch romantic flower series exquisite Bible Album </li>
<Li> 40 inch x laser output photo </li>
<Li> 5. 60X 40 inch Ali permanently framed one </li>
<Li> 6. 60X 40 inch large-size stylish and luxurious photo frames </li>
<Li> 32 inch x laser output photo </li>
<Li> 8. 48X 32 inch Ali permanently framed one </li>
</Ul>

Now let's analyze the above css code.

<H2>

H2 {
Margin-top: 6px;
Margin-bottom: 4px;
}

In this way, the title is displayed in the figure, and the definition of the li label is now available.

Li {

List-style-image: none;
List-style-type: none;
Line-height: 22px;
Height: 22px;
}

In this way, our results will show the basic getting started examples of css div, and the tutorials will be completed here.

For original site reprinted, please note: www.111cn.net/cssdiv/css.html

 

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.