How to Center a DIV - HTML & CSS Tutorial

Subscribers:
17,600
Published on ● Video Link: https://www.youtube.com/watch?v=hi1LezY8v2g



Category:
Tutorial
Duration: 3:10
485 views
20


Hi everyone, welcome to this video. In this video, I will show you how to center a div using HTML and CSS. Here are the steps of how to center the div. First, add a class name to the div you want to center. Third, in your CSS style tag or the external sheet, use a dot followed by the class name and add two curly braces. inside the curly braces, add the following properties, and make sure to use display:inline-block; margin-left: auto; margin-right: auto; followed by width.
#css #central #div







Tags:
how
to
center
divs
div
css
html
tutorial
web
design
development
cis
211
intro
web design
how to center divs
centering divs