|
|
 |
Re: FN-FORUM: CSS centered box/container
date posted 27th January 2004 20:33
IIRC you set the top to 50%, then set the top margin to -(h/2) where h
is the (fixed) height of your container. May want to repeat for
bottom, but probably not nec.
Obviously this is a problem for fluid boxes but sounds like you want a
fixed-size one here.
HTH
Nick
Darren Spink - ARKAD it Solutions wrote:
> Hi everyone
>
> I am trying to create a box/container using CSS so I can then add various
> items to the inside of it. Although the box is horizontally centred, I want
> to have it vertically centred. I don't want it to increase in side at all
> regardless of the resolution etc.
>
> The link just for test purposes is
>
> http://www.arkad.co.uk/newsite2/index2.php
>
> any ideas/clues/help welcomed.
>
> TIA
>
>
> Regards
>
>
> Darren Spink
> TEL: +44(0)113 253 4750
> FAX: +44(0)113 253 1686
> EML: [EMAIL REMOVED]
> ICQ: 56667649
>
>
>
>
|
 |
|