[英]HTML - aligning image on the footer
I'm having trouble trying to align my image to the bottom of the page. 尝试将图像与页面底部对齐时遇到麻烦。 I'm editing my worpdress php files: footer.php for the html and stylesheet.css for the css. 我正在编辑我的worpdress php文件:用于HTML的footer.php和用于CSS的stylesheet.css。 When I change the bottom dweller or the wrapper height it doesnt change the position of the image. 当我更改底部居民或包装纸的高度时,它不会更改图像的位置。 How do I change the html/css so that it sits at a certain point at the bottom of the page? 如何更改html / css,使其位于页面底部的某个位置?
HTML 的HTML
<div id="wrapper">
<div id="bottomDweller">
<img src="http://anbhialann.ie/wp-content/uploads/2014/01/Menu-Pages-Badge.png" alt="Bottom of the page" width="42" height="42"></div>
</div>
CSS 的CSS
#wrapper {height: 500px; position:relative;}
#bottomDweller {position: absolute; bottom:20px;}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.