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.