By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,948 Members | 664 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,948 IT Pros & Developers. It's quick & easy.

need layout help

P: n/a
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
Share this Question
Share on Google+
3 Replies


P: n/a
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

P: n/a
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

P: n/a
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.