Topic: Img positioning question |
|
|---|---|
| Author | Thread |
|
Paranoid (IV) Mad Scientist From: Right-dead center |
posted 07-06-2006 16:32
I have a question about the best way to position an image and text at the bottom of a div. Here's what they want: |
|
Paranoid (IV) Inmate From: London |
posted 07-06-2006 16:55
Yes float the image, I recommend reading Maxdesign's float tutorial for a good understanding of how this will work. |
|
Paranoid (IV) Mad Scientist From: Right-dead center |
posted 07-06-2006 18:33
Thanks Blaise, that worked to position the text where I want in relation to the image. |
|
Paranoid (IV) Inmate From: Florida |
posted 07-06-2006 20:13
You want #imgcaption to always be at the bottom of #mainarea? |
|
Paranoid (IV) Mad Scientist From: Right-dead center |
posted 07-06-2006 20:23
Yep, that's the idea. Always at the bottom but with some padding on the left so it doesn't bunch up against the browser. |
|
Maniac (V) Inmate From: there...no..there..... |
posted 07-06-2006 21:43
I would like to see if there's a better way to do this as well. I have always just used absolute positioning with the bottom set to 0px. It works I guess. |
|
Paranoid (IV) Inmate From: Norway |
posted 07-06-2006 22:05
|
|
Paranoid (IV) Mad Scientist From: Right-dead center |
posted 07-07-2006 05:40
Well I thought I had this all fixed till my gf looked at it in Safari and it looks like zees: |
|
Maniac (V) Inmate From: PA, US |
posted 07-07-2006 06:27
It is the only solution that comes to mind, and is actually similar to something I had to do on a recent site I coded. code: <table border="0" cellspacing="0" cellpadding="0">
<tr>
<td>#copy</td>
<td rowspan="2">#rightimg</td>
</tr>
<tr>
<td valign="bottom">#bottom</td>
</tr>
</table>
|
|
Paranoid (IV) Mad Scientist From: Right-dead center |
posted 07-07-2006 16:43
Seems like there's not really any good way to do this aside from using a table or using JS. I would have no idea how to go about it using JS either. |
|
Nervous Wreck (II) Inmate From: |
posted 07-08-2006 10:11
Definitely with CPrompt on this one. |
|
Maniac (V) Inmate From: Boston, MA, USA |
posted 07-08-2006 18:46
Hey krets - there might be some material in this article at Community MX that would be helpful: |