Css tutorial: css + div text mixing

Source: Internet
Author: User

Css tutorial: css text and text mixing today let's look at the more advanced css + div text mixing, let's first look at the effect of the figure below.

The effect is good. Let's look at the css code.

<Dl class = "week1" id = "no1">
<Dt> <a> </a> </img> </dt>
<Dd class = "blogername"> <a href = "#"> Blog Master: yayapet </a> </dd>
<Dd class = "vote"> <span> Number of Tickets & nbsp: </span> ??? </Dd>
<Dd class = "view"> <span> browsing times: </span> ??? </Dd>
<Dd class = "enterlink"> <a href = "#"> </a> </dd>
</Dl>
<Dl class = "week1" id = "no2">
<Dt> <a> </a> </img> </dt>
<Dd class = "blogername"> <a href = "#"> Blog Master: yayapet </a> </dd>
<Dd class = "vote"> <span> Number of Tickets & nbsp: </span> ??? </Dd>
<Dd class = "view"> <span> browsing times: </span> ??? </Dd>
<Dd class = "enterlink"> <a href = "#"> </a> </dd>
</Dl>
               
<Dl class = "week1" id = "no3">
<Dt> <a> </a> </img> </dt>
<Dd class = "blogername"> <a href = "#"> Blog Master: yayapet </a> </dd>
<Dd class = "vote"> <span> Number of Tickets & nbsp: </span> ??? </Dd>
<Dd class = "view"> <span> browsing times: </span> ??? </Dd>
<Dd class = "enterlink"> <a href = "#"> </a> </dd>
</Dl>
<Dl class = "week1" id = "no4">
<Dt> <a> </a> </img> </dt>
<Dd class = "blogername"> <a href = "#"> Blog Master: yayapet </a> </dd>
<Dd class = "vote"> <span> Number of Tickets & nbsp: </span> ??? </Dd>
<Dd class = "view"> <span> browsing times: </span> ??? </Dd>
<Dd class = "enterlink"> <a href = "#"> </a> </dd>
</Dl>

Now we use the dl dd to see how the style controls its display mode.

. Week1 {
Height: 259px;
Width: 156px;
Margin: 10px 0 0 10px;
Padding: 10px 0 0 10px;
}
. Vote {
Margin: 7px 0;
}
. View {
Clear: left;
Margin: 7px 0;
}
. Enterlink {
Background: url (images/enterblog2.gif) no-repeat top left;
Margin: 5px 0 0 0;
Height: 21px;
Width: 77px;
}
. Number {
Margin: 0 0 0 5px;
Float: left;
}
# No1 {
Background: url (images/no1.gif) no-repeat top left;
}
# No2 {
Background: url (images/no2.gif) no-repeat top left;
}
# No3 {
Background: url (images/no3.gif) no-repeat top left;
}
# No4 {
Background: url (images/no4.gif) no-repeat top left;
}

Well, it's actually quite simple. For the original reposted on this site, please indicate www.111cn.net/divcss/css.html.

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.