Block level elements can be centered by:
The margin-left and margin-right properties can be set to some explicit value:
BODY {
width: 40em;
background: fluorescent;
}
P {
width: 30em;
margin-right: auto;
margin-left: auto
}
Block level elements can be centered by:
The margin-left and margin-right properties can be set to some explicit value:
BODY {
width: 40em;
background: fluorescent;
}
P {
width: 30em;
margin-right: auto;
margin-left: auto
}