This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Stylesheets > November 2006 > need layout help





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author need layout help
timmyb

2006-11-05, 11:33 pm

I'm having trouble placing some text where I want it to go in my
layout. The main web page has three images, and I have been able to
align them the way I want by making three divs and each having a float
left. I want the text to be centered under the center image, but I
can't get it to go to the right place. Can anyone help?

Here's a rough sketch of what I'm trying to do:



______________ _____________ ______________
| | | | | |
| | | | | |
| | | | | |
|Image | |Image | | Image |
| | | | | |
| | | | | |
| | --------------- | |
| | I want a three | |
| | line caption to | |
| | go here |--------------|
--------------

Ben C

2006-11-05, 11:33 pm

On 2006-10-20, timmyb <tbarmann92@XXXXXXXXXX> wrote:
> I'm having trouble placing some text where I want it to go in my
> layout. The main web page has three images, and I have been able to
> align them the way I want by making three divs and each having a float
> left. I want the text to be centered under the center image, but I
> can't get it to go to the right place. Can anyone help?
>
> Here's a rough sketch of what I'm trying to do:
>
>
>
> ______________ _____________ ______________
>| | | | | |
>| | | | | |
>| | | | | |
>|Image | |Image | | Image |
>| | | | | |
>| | | | | |
>| | --------------- | |
>| | I want a three | |
>| | line caption to | |
>| | go here |--------------|
> --------------


Put the caption _in_ the middle div, after the image. Make the image in
there display: block (or enclose it in a div) so the caption goes below
it (img is inline by default) and give the middle div text-align:
center.
Stephen Poley

2006-11-05, 11:33 pm

On 20 Oct 2006 14:30:52 -0700, "timmyb" <tbarmann92@XXXXXXXXXX> wrote:

>I'm having trouble placing some text where I want it to go in my
>layout. The main web page has three images, and I have been able to
>align them the way I want by making three divs and each having a float
>left. I want the text to be centered under the center image, but I
>can't get it to go to the right place. Can anyone help?


Not certain whether you need it here, but this is a technique that is
worth knowing about, and it may what you're looking for:
http://www.spartanicus.utvinternet....th_captions.htm

--
Stephen Poley

http://www.xs4all.nl/~sbpoley/webmatters/
Jobe

2006-11-05, 11:33 pm

I would create another div

johan
www.Web-garden.be

timmyb wrote:
> I'm having trouble placing some text where I want it to go in my
> layout. The main web page has three images, and I have been able to
> align them the way I want by making three divs and each having a float
> left. I want the text to be centered under the center image, but I
> can't get it to go to the right place. Can anyone help?
>
> Here's a rough sketch of what I'm trying to do:
>
>
>
> ______________ _____________ ______________
> | | | | | |
> | | | | | |
> | | | | | |
> |Image | |Image | | Image |
> | | | | | |
> | | | | | |
> | | --------------- | |
> | | I want a three | |
> | | line caption to | |
> | | go here |--------------|
> --------------


Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews