horizontal line and right way to code it in html, css

前端 未结 10 1024
借酒劲吻你
借酒劲吻你 2020-12-04 08:12

I need to draw a horizontal line after some block, and I have three ways to do it:

1) Define a class h_line and add css features to it, like

<         


        
10条回答
  •  渐次进展
    2020-12-04 08:52

    If you really want a thematic break, by all means use the


    tag.


    If you just want a design line, you could use something like the css class

    .hline-bottom {
        padding-bottom: 10px;
        border-bottom: 2px solid #000; /* whichever color you prefer */
    }
    

    and use it like

    Cheese

提交回复
热议问题