DL.DT.DD implements a simple example of left and right layout

PHP中文网
Release: 2016-05-16 12:06:39
Original
1696 people have browsed it

this is a question that someone sent an email to ask today. the original idea was to use the ul list to implement it; but there are two troublesome places in this way:
1. if you use ul for layout, the one on the right column is more troublesome;
2. it is troublesome to adapt the borders outside the text;
3. the height may have to be fixed;
so, take a closer look at this layout and think about using dl. dt.dd is reasonable:
1. the layout is more reasonable;
2. it will be easy to expand in the future;
3. there must be very little css;
i tried to write it, it’s okay to take a look! within control!
of course it goes without saying about layout distribution:

标题

Copy after login

css part:

Copy after login

look at the effect:

what if we say fixed width?

     

标题

标题

Copy after login

for a related example, i have written one before:

      
DL.DT.DD implements a simple example of left and right layout
母亲节-祝福短信
DL.DT.DD implements a simple example of left and right layout
母亲节-祝福短信
DL.DT.DD implements a simple example of left and right layout
母亲节-祝福短信
DL.DT.DD implements a simple example of left and right layout
母亲节-祝福短信
DL.DT.DD implements a simple example of left and right layout
母亲节-祝福短信
Copy after login
Related labels:
dd
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!