469,890 Members | 1,425 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,890 developers. It's quick & easy.

need layout help

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 |--------------|
--------------

Oct 20 '06 #1
3 1363
On 2006-10-20, timmyb <tb********@gmail.comwrote:
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.
Oct 20 '06 #2
On 20 Oct 2006 14:30:52 -0700, "timmyb" <tb********@gmail.comwrote:
>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.i...h_captions.htm

--
Stephen Poley

http://www.xs4all.nl/~sbpoley/webmatters/
Oct 21 '06 #3
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 |--------------|
--------------
Oct 22 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Matt Stanley | last post: by
47 posts views Thread by Neal | last post: by
2 posts views Thread by bryan | last post: by
8 posts views Thread by Johnfli | last post: by
1 post views Thread by dlogan | last post: by
4 posts views Thread by Edward Mitchell | last post: by
3 posts views Thread by Andy B | last post: by
1 post views Thread by Waqarahmed | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.