5936Re: [NH] Crediting a Photograph
- Mar 26, 2007Hi Axel,
On 26 Mar 07 14:01 Axel Berger <Axel-Berger@...> said:
> You can use text-align with IMG inside the DIV. To get what you wantMmmm! I can see why you said forget the idea and keep using tables.
> you may need to set the width of the text underneath the image or
> the DIV as a whole manually, tables do it for you.
> Alternatively centering DIVs is meant to be done by setting both
> margin-left and margin-right to auto. As browser support varies you
> ought to use all three, i.e. both margins plus text-align:center. A
> downside is that this also centres text inside the DIV, so you may
> need to use an extra inner content DIV and set its text-align to
> something else.
> N.B: My source here is "integrated HTML and CSS" by Virginia deBolt
I was hoping for briefer code, but this all suggests that using tables
keeps the code as compact as any other approach.
To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre. http://uk.security.yahoo.com
- << Previous post in topic Next post in topic >>