0
我想添加填充到左和之前的內容屬性的值權,僞元素之後..如何填充到左,右增加後的內容和僞元素之前
HTML是 -
<div class="header-contact">
<p>Mail: [email protected]</p>
<p>Tel: xxxxx xxxxxxxx</p>
</div>
和CSS是 -
.header-contact p{
float:right;
padding-left:10px;
position:relative;
}
.header-contact p:last-child:after{
content:"|"; //i want to add padding to its right and left
position:absolutes;
}
感謝它正在工作..這是我的第一個問題,我很高興能在幾分鐘內得到答案。 –