Topic: Img positioning question |
|
---|---|
Author | Thread |
Paranoid (IV) Mad Scientist From: Right-dead center |
![]() ![]() ![]() ![]() 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 |
![]() ![]() ![]() ![]() 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 |
![]() ![]() ![]() ![]() Thanks Blaise, that worked to position the text where I want in relation to the image. |
Paranoid (IV) Inmate From: Florida |
![]() ![]() ![]() ![]() You want #imgcaption to always be at the bottom of #mainarea? |
Paranoid (IV) Mad Scientist From: Right-dead center |
![]() ![]() ![]() ![]() 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..... |
![]() ![]() ![]() ![]() 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 |
![]() ![]() ![]() ![]() |
Paranoid (IV) Mad Scientist From: Right-dead center |
![]() ![]() ![]() ![]() 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 |
![]() ![]() ![]() ![]() 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 |
![]() ![]() ![]() ![]() 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: |
![]() ![]() ![]() ![]() Definitely with CPrompt on this one. |
Maniac (V) Inmate From: Boston, MA, USA |
![]() ![]() ![]() ![]() Hey krets - there might be some material in this article at Community MX that would be helpful: |