我想盡可能地實現一些儘可能接近下面的圖像。 樣式HR與圖像
我目前得到下面的代碼下面,似乎無法完全得到它做我需要的東西。
我的CSS:
hr:after {
background: url('../img/green_leaf.png') no-repeat top center;
content: "";
display: block;
height: 18px; /* height of the ornament */
position: relative;
top: -9px; /* half the height of the ornament */
border: 0;
color: #d7d7d7;
}
我想加厚線,如果可能的話,在圖像周圍添加空間(未做green_leaf.png有一個白色的BG)。
http://stackoverflow.com/questions/35176262/how-to-make-space-between-middle-line-and-text/ – Aziz