In the CSS style I used this:

div{ background-color: darksalmon ; width: 400px; height: 100px; margin: 50px; padding: 20px; }

enter image description here

but still, even if I place text-centered it doesn't work


Ok, I needed to add this

display:table; margin:0 auto;

to the div

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .