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:
标题
css part:
look at the effect:
test
test
what if we say fixed width?
标题
- ·博客里的文章是我自己写的!
- 作者:张三
- ·博客里的文章是我自己写的!
- 作者:张三
- ·博客里的文章是我自己写的!
- 作者:张三
- ·博客里的文章是我自己写的!
- 作者:张三
- ·博客里的文章是我自己写的!
- xxx
- ·博客里的文章是我自己写的!
- xxx
- ·博客里的文章是我自己写的!
- xxx
标题
- ·博客里的文章是我自己写的!
- xxx
- ·博客里的文章是我自己写的!
- xxx
- ·博客里的文章是我自己写的!
- xxx
- ·博客里的文章是我自己写的!
- xxx
- ·博客里的文章是我自己写的!
- xxx
- ·博客里的文章是我自己写的!
- xxx
- ·博客里的文章是我自己写的!
- xxx
for a related example, i have written one before: