[dev] Re: [cvs] commit: ansel/lib/Block random_gallery.php
random_photo.php
Ronny Adsetts
ronny.adsetts at amazinginternet.com
Sat Nov 13 10:31:34 PST 2004
Chuck Hagenbuch said at 13/11/2004 15:47:
> Quoting Ben Chavet <ben at chavet.net>:
>
>> I cannot figure out how to center these images. If anybody knows how,
>> please do so.
>
> The only reliable way to center things with CSS is to not use CSS - use
> a table.
> Sad, but as far as I can tell, true. There are a few other hacks, but they
> basically rely on text-align misbehavior or using a fixed width.
To center stuff in CSS, you generally have to have the left and right margins
set to auto. The text-align refers to contents of a block so you need to also
mostly have the parent element set text-align: center.
HTH.
Ronny
--
Technical Director
Amazing Internet Ltd, London
t: +44 20 8607 9535
f: +44 20 8607 9536
w: www.amazinginternet.com
More information about the dev
mailing list