CSS list of left and right structure

Source: Internet
Author: User

The left and right structure of the image and text mixed CSS list, let's take a look at a screenshot of my cut.

Let's take a look at the effect of the above text around the image. Let's take a look at how css is implemented.

<Div id = 'Jimmy '>

<Dl>

<Dt class = "dt1"> right Image effect </dt>

<Dd> place of text content </dd>

</Dl>

</Div>

The layout is like this. Now let's take a look at how css is written.

. Dt1 {

Height: 250px;

Float: right;

Margin: 0px 0px 0px 0px;

}

Just a few lines of code are all done. Some people may ask why dd is not set to float? Because dd is floating to the left by default, it is unnecessary.

Note: Please indicate www.111cn.net for original reprinted on this site

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.