website design

onlinegamesnz

New Member
can anyone see whats wrong with my site

nchdesign.dnserver.net.nz/site1/

?????

does the DIV align in the center of the image. also scrollbar color black/white?
 

onlinegamesnz

New Member
Any idea how i can make it so it centers no matter whAt browser resolution or text size the user has? I read somewhere to "float" it instead of position with absolute?

Any ideas?

Cheera
 

PixelPusher

Super Moderator
Staff member
If you are using absolute position, the "auto" setting for margin will not register ("margin:0 auto;"). This will only center correctly with relative and static positions.

If you must stick with absolute position, use this to center:

Code:
div {
position:absolute;
width:200px;   /* DEFINE A WIDTH */
left:50%;   /* CENTERS LEFT EDGE OF DIV */
margin-left:-100px;  /* OFFSET LEFT EDGE OF DIV BY HALF OF WIDTH */
}
 
Top