HTML Blocks are elements established as a block-level element, which are created by using the <div> element.
The most common way to center blocks with CSS is to set both the left and right margins to auto. Here is the CSS:
<style>
div.center {
margin: auto;
}
</style>
The most common way to center blocks with CSS is to set both the left and right margins to auto. Here is the CSS:Reference:
https://www.w3.org/Style/Examples/007/center.en.html
No comments:
Post a Comment