|
|
 |
Re: FN-FORUM: Css horizontal alignment (mark II)
date posted 3rd September 2007 14:35
On 3 Sep 2007, at 14:56, John Deaville wrote:
>
> Can anyone tell me if this aligns centrally horizontally
>
> http://www.nxmd.co.uk
>
>
try:
body {
margin: 0px;
padding: 10px;
text-align: center;
background-image: url(images/background.gif);
background-position: 50% 0%;
background-repeat: no-repeat;
background-color: #d6d6d6;
font-family: Arial, Helvetica, sans-serif;
font-size: 0.8em;
font-style: normal;
line-height: normal;
font-weight: normal;
font-variant: normal;
text-decoration: none;
}
.centrealign {
text-align: left
width: 700px;
background-color: #FFFFFF;
text-align: center;
padding: 0px;
position: relative;
margin: 0 auto;
}
to get IE5 and 6 working - IE7 should be happy with margin: 0 auto.
|
 |
|