Hi everyone. I am making a page that will output articles from a database. I am having the image with the article float left so that the text wraps the image and so that it goes to the left of the page. The problem is when I do this the <div> doesnt include the image and the bottom border is redrawn under the image if I dont have enough text to push it down. The text still wraps properly and the image is place correctly, the bottom border of the box surrounding the article just doesnt adjust correctly when I float it, but does when I have no float.
I have included some css code below, I think the problem is somewhere in there. Anyways help would be appreciated!
Code:
#page {
clear: both;
float: left;
width: 100%;
margin-bottom: 6em;
text-align: left;
}
#columns {
margin: 0 auto;
#textHolder {
border: 1px dashed gray;
margin-top: 10px;
height:auto;
padding-left: 5px;
padding-top:10px;
padding-bottom:10px;
}
}
.newsImage {
padding-right: 15px;
float:left;
}
__________________
DVD Movie Release Database: Please login or register to view this content. Registration is FREE
|