By miggols99 on
I am making my own theme from scratch (I have had a few problems with Zen. It's just too confusing!). So far I have been quite successful, but I have one problem with the clear-block div which is on some of my pages. It creates a large white space. If I change it to "display: inline", everything works how it should, but I'm sure there's a reason for clear-block for being there. Is there something I can change in my CSS file to avoid ruining something?
Comments
I put in "float: left" for
I put in "float: left" for .clear-block and this fixes it. Hopefully I won't get any problems...
EDIT: This is a very dirty workaround.. can anyone help me fix this? Here's my page.tpl.php
and my style.css:
I've tried looking at other fluid themes but they don't seem to help :(
I ran into the same problem
Indeed i have something similar. First block in the right region is on top and the second block won't start untill the content part stopped.
clear-block with block that's overriding the css 8 lines above messes up the page layout. Display inline or float left will fix it, but the real question is why this is happening. The css hack that is used in defaults.css like
is kind of weird for firefox will always use the last defined property and will omit the * html .clear-block property. What i do know is that is not caused by the content (center) part.
My guess is this only happens when wrappers are defined like this:
So what's the problem here? Well, the narrowcolumn being the #content part that needs to take the center part with a #sidebar-right next to it. The narrowcolumn floats to the left, leaving the space (total - its width) open for a sidebar. In this case the narrowcolumn is not the one filling the height of the layout, but the sidebar does. The sidebar width is (550 + 160 =) 710px and stretches out the page. So the content starts filling: first the first blok in the sidebar, then it runs into the content part because it is floating left and after that's finished, the second sidebar block can fill up the next available space.
Because they all are display blocked, they get priority in width and take the space they can get.
Sollutions imho ...
Example for a container with at least 710px width:
Thank you, Stalski! Your
Thank you, Stalski!
Your first sollution has solved my problem with white spaces