pepsi_max2k
02-22-2007, 04:21 PM
Hi, sorry this one's probably really obvious. Normally a search would solve it but all the solutions I've found so far don't work too good. I'm also a complete novice at xhtml (tried it a couple years ago but all those divs seemed to have a mind of their own compared to good ole tables :p wordpress has made me learn though :thumbsup: )
http://www.inaudible.co.uk/blog/
The image to the left is overlapping the seperate div below. I've tried adding things like clear: both and various display types for the both divs and image but nothing helps. I'm used to tables where something within a table would move the rest of the table, div's clearly don't care :rolleyes:
I've also got virtually the same problem with the sidebar (whenever the content of the main page isn't as long as the sidebar, the sidebar overlaps it). Example here:
http://inaudible.co.uk/blog/?s=dsfsd
I'm guessing the solution is probably the same for both, so could someone point me in the right direction or suggest a possible fix?
Thanks.
FWIW, here's some relavent css controling the things:
<div id="page">
. <div id="content" class="narrowcolumn">
. . <div id="post">
. . . <div id="entry">
. . . . <img class="alignleft"> entry text
. . . </div>
. . <div id="post">
. . . <div id="entry">
. . . . another entry
. . . </div>
. . </div>
. </div>
. <div id="sidebar">
. </div>
</div>
.narrowcolumn .entry, .widecolumn .entry {
padding: 0 5px 0 0;
margin: 0;
}
img.alignleft {
padding: 0;
margin: 0 7px 2px 0;
display: inline;
}
#sidebar
{
padding: 0 0 10px 5px;
position: absolute;
right: 10px;
top: 15px;
width: 145px;
text-align: center;
}
http://www.inaudible.co.uk/blog/
The image to the left is overlapping the seperate div below. I've tried adding things like clear: both and various display types for the both divs and image but nothing helps. I'm used to tables where something within a table would move the rest of the table, div's clearly don't care :rolleyes:
I've also got virtually the same problem with the sidebar (whenever the content of the main page isn't as long as the sidebar, the sidebar overlaps it). Example here:
http://inaudible.co.uk/blog/?s=dsfsd
I'm guessing the solution is probably the same for both, so could someone point me in the right direction or suggest a possible fix?
Thanks.
FWIW, here's some relavent css controling the things:
<div id="page">
. <div id="content" class="narrowcolumn">
. . <div id="post">
. . . <div id="entry">
. . . . <img class="alignleft"> entry text
. . . </div>
. . <div id="post">
. . . <div id="entry">
. . . . another entry
. . . </div>
. . </div>
. </div>
. <div id="sidebar">
. </div>
</div>
.narrowcolumn .entry, .widecolumn .entry {
padding: 0 5px 0 0;
margin: 0;
}
img.alignleft {
padding: 0;
margin: 0 7px 2px 0;
display: inline;
}
#sidebar
{
padding: 0 0 10px 5px;
position: absolute;
right: 10px;
top: 15px;
width: 145px;
text-align: center;
}