| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
|
|
#1 (permalink) |
|
shiro
Join Date: Aug 2007
Location: Yokohama, Japan
Posts: 1,803
|
positioning images
Im trying to place 4 images in a div, one image in each corner. So far I have managed to get the top two images in their respective corners, but the bottom two images are only tucked up under the top images. I cant get them to align to the bottom of the div container. I have tried position: absolute, but it just positions the image on the bottom of the entire page, rather than the div its contained in. I have tried vertical-align: bottom (and baseline), and nothing. Can someone tell me what Im doing wrong? XHTML Code:
CSS: Code:
Thanks in advance. |
|
|
|
|
|
#2 (permalink) |
|
Junior Graphic Designer
|
You have to put a relative position on the container and absolute position for images. Code: Code:
Cheers. |
|
![]() |