Borders · Bootstrap - border on bottom of div only


Use HTML Div to add border only on top and bottom? - Stack Overflow border on bottom of div only

Set the style of the bottom border for different elements: h1 { border-bottom: 5px solid red; } h2 { border-bottom: 4px dotted blue; } div { border-bottom: double; }.

Just a case of: border-top: 5px solid green; border-bottom: 5px solid green;"> This is a.

three-sides { border-bottom: 2px solid black; border-right: 2px solid top, right, bottom, left - just like margin and padding */ border-width: 0 2px.

The border-bottom shorthand CSS property sets an element's bottom border.