My website isn't centered in all browsers
Started by
cynd54
, Mar 27 2013 07:34 PM
#16
Posted 03 May 2013 - 12:47 PM
#17
Posted 03 May 2013 - 06:57 PM
Take a look at this simple div layout: http://paynelessdesi...in.com/pnt6C7P1 . The CSS shows:
This is just one way to get a wrapper. It shows a 2% top/bottom margin with element centered. You can remove the border CSS rule and add whatever other CSS rules you want.
div#wrap {
width: 70%;
margin: 2% auto;
border: 5px inset #070;
}
This is just one way to get a wrapper. It shows a 2% top/bottom margin with element centered. You can remove the border CSS rule and add whatever other CSS rules you want.
Edited by AstraNut, 03 May 2013 - 06:59 PM.
Similar Topics
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users