Posted by dorayme on 08/22/06 04:09
In article <ecd0kq$9gc$1@newsreader2.netcologne.de>,
Martin Pöpping <martin_p@despammed.com> wrote:
> dorayme schrieb:
>
> > Divs are 100% wide in relation to their containers (eg. body) by
> > default. So if you want one centred, you need to give it a width
> > smaller than the container in which you want it to appear but big
> > enough to hold the content that is inside it (this needs careful
> > though often). Then you need to instruct it to centre. This
> > usually works:
> >
> > margin-left: auto;
> > margin-right: auto
>
> Thanks for your hint!
> I´m half ready now ;)
Will be able to look tomorrow... but have you tried applying the
above advice to height too?
--
dorayme
[Back to original message]
|