margin
Fri Dec 23 2022 11:06:29 GMT+0000 (Coordinated Universal Time)
Saved by
@dsouzanathan
div.headline {
width: 400px;
margin: 0 auto;
}
//In the example above, margin: 0 auto; will center the divs in their containing elements. The 0 sets the top and bottom margins to 0 pixels. The auto value instructs the browser to adjust the left and right margins until the element is centered within its containing element.
content_copyCOPY
Comments