|
|
 |
Re: FN-FORUM CSS positioing question
date posted 28th September 2002 14:29
> anybody(paul?) able to shine any light on this before i return to tables
on
> this one?
>
No tables needed, the following works in Moz/Opera /IE (not sure about IE4)
HTH, Paul.
CSS position:absolute center example
body, html {background-color: #fff;
overflow: hidden; margin: 0; padding: 0;
}
#center {
/* Make element float in the center */
position: absolute;
left: 50%;
top: 50%;
/* Set the width and height */
width: 660px;
height: 140px;
/* Set margin to half the values of width/height */
margin-left: -330px;
margin-top: -70px;
/* Presentational properties */
background-color: #900;
color: #fff;
text-align: center;
font: bold 700% arial;
}
Centered
|
 |
|