brown2005 Posted April 18, 2007 Share Posted April 18, 2007 #area { width: 250px; height: 300px; border: 2px solid #627c10; padding: 10px; } i have the above which creates a box, now wat i want to do is place an image in the bottom 50px of the div for the above, how can i do this please? Quote Link to comment https://forums.phpfreaks.com/topic/47551-solved-div-positioning/ Share on other sites More sharing options...
Daniel0 Posted April 18, 2007 Share Posted April 18, 2007 Try #area img { position: absolute; bottom: 0px; } Quote Link to comment https://forums.phpfreaks.com/topic/47551-solved-div-positioning/#findComment-232078 Share on other sites More sharing options...
brown2005 Posted April 18, 2007 Author Share Posted April 18, 2007 nope that puts it to the bottom of the whole page Quote Link to comment https://forums.phpfreaks.com/topic/47551-solved-div-positioning/#findComment-232102 Share on other sites More sharing options...
Daniel0 Posted April 18, 2007 Share Posted April 18, 2007 Try vertical-align in the div then. Quote Link to comment https://forums.phpfreaks.com/topic/47551-solved-div-positioning/#findComment-232702 Share on other sites More sharing options...
ToonMariner Posted April 19, 2007 Share Posted April 19, 2007 You could use a background [code]#area { width: 250px; height: 300px; border: 2px solid #627c10; padding: 10px; background: transparent url(../image.gif) no-repeat bottom; } OR use some positioning #area { width: 250px; height: 300px; border: 2px solid #627c10; padding: 10px; position: relative; } #area img { position: absolute; bottom: 0; } Note you will have to use a dtd (like xhtml 1.1 or html 4.01 strict) that makes IE work in standards compliance mode for the positioning method. [/code] Quote Link to comment https://forums.phpfreaks.com/topic/47551-solved-div-positioning/#findComment-233133 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.