I need to make a horizontal line after some block, and I have three ways to do this:
1) Define the h_line class and add css functions to it, for example
#css .hline { width:100%; height:1px; background: #fff } #html <div class="block_1">Lorem</div> <div class="h_line"></div>
2) Use the hr tag
#css hr { width:100%; height:1px; background: #fff } #html <div class="block_1">Lorem</div> <hr />
3) use it as an after alias
#css .hline:after { width:100%; height:1px; background: #fff; content:"" } #html <div class="block_1 h_line">Lorem</div>
Which method is most practical?
html css
Pavel Tyavin Feb 11 '13 at 21:22 2013-02-11 21:22
source share