How to Center a DIV - HTML & CSS Tutorial

preview_player
Показать описание
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
Рекомендации по теме
welcome to shbcf.ru