Style text node
by Daniel Gasser
HTML
<div class="target">
1
<a href="#"> 2 </a>
<a href="#"> 3 </a>
<a href="#"> >> </a>
</div>
<br />
<div class="target">
<a href="#"> << </a>
<a href="#"> 1 </a>
<span class="xxx"> 2 </span>
<a href="#"> 3 </a>
<a href="#"> >> </a>
</div>
CSS
.target{
line-height:30px;
}
.xxx {
background: red;
}
.target a {
min-width:30px;
height:30px;
display:inline-block;
background-color:yellow;
text-align:center;
padding:0px 3px;
text-decoration:none;
}