In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-13 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces how to generate multi-line dt and dd side by side in CSS. The article is very detailed and has certain reference value. Interested friends must read it!
How to realize dt and dd side by side
Use the description method of "definition list"
Title
Catalogue
Title
Catalogue
Like this, write the title and content continuously. If you want to arrange [title] and [content] horizontally, you can't write like a table, or even if you use floats, there is no place to write clearfix.
In this case, using "float:left;" and "margin-left", you can achieve a side-by-side approach.
Give float:left; the way to give margin-left the part that loses height there.
If this is the case, even if the content becomes multi-line, it can not destroy the appearance.
Let's look at an example.
Suppose you write updates to the Web site. First, let's write HTML.
Then, write CSS,float-left to, and write margin-left in (it seems that 80px is better around here. ),
HTML
October twentieth
Text is added
Multiple lines of content appear
October twentieth
Text is added
October eighteenth
Website renewal
CSS
Dt {
Float:left
}
Dd {
Margin-left:80px
}
The above is all the content of the article "how to generate multi-line dt and dd side by side in CSS". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.