Answers for "how to assign something in center inside a div"

7

center text in div container

text-align: center
Posted by: Guest on June-01-2020
0

how to assign something in center inside a div

IMG.displayed {
    display: block;
    margin-left: auto;
    margin-right: auto }
...
<IMG class="displayed" src="..." alt="...">
Posted by: Guest on October-20-2020
4

how to center a div

margin:auto
Posted by: Guest on August-13-2020
0

how to assign something in center inside a div

P { text-align: center }
H2 { text-align: center }
Posted by: Guest on October-20-2020

Code answers related to "how to assign something in center inside a div"

Browse Popular Code Answers by Language