Hi all,
I am currently running a site using Drupal 6.12, and Advanced Forums. The problem I'm running into is similar to what is described here: http://drupal.org/node/250483
On post pages, there is a large amount of whitespace between the "Post Reply" button and the first post. If I have more blocks on the sidebar, the whitespace increases (the post body always appears just below the last sidebar block). You can see what i'm talking about here: http://www.ruskullhouse.com/content/test-0
The problem shows up in both Firefox 3.0.10 and Midori 0.17 (uses WebKit to render). I'm assuming it would show up in IE as well, but as I'm running Linux I can't test it. I'm guessing that it's a CSS problem, but unfortunately, I can't seem to pinpoint it using Firebug.
Can anyone help me out and suggest what changes should be made to the style.css to fix this?
Thanks!
Comments
i'm still a beginner at
i'm still a beginner at drupal but here goes
If you use firebug you'll see that the css for the box that surrounds the post is called ".forum-post-panel-main" and includes the line "min-height: 350px" which is causing the whitespace gap.
In firebug the css file is denoted as advanced...ure.css which is advanced_forum-structure.css
So if you go to
/sites/all/modules/advanced_forum/styles/[your selected style]/advanced_forum-structure.css
Find this section and comment out the lines with 350px
/* Post text area */
.forum-post-panel-main {
margin-left: 150px; /*Set left margin to LeftColumnWidth*/
min-height: 350px;
height: auto !important;
height: 350px;
}
so it should look like:
/* Post text area */
.forum-post-panel-main {
margin-left: 150px; /*Set left margin to LeftColumnWidth*/
/* min-height: 350px; */
height: auto !important;
/* height: 350px; */
}
This will get rid of the gap but only applies for each individual advanced forum style. If you change styles the gap will be back.
I'm not sure what the best practice is for placing a custom css file; there's no css file in the /advanced_forum directory. The way i've just showed you, if you update the advanced forum module in the future, you'll have to redo the above changes.
Thanks to Dave of http://www.buckeyelake.org/ for the tips on the 350px
Doesn't seem to work
Thanks for the advice! But unfortunately, it doesn't seem to make a difference. Making those changes doesn't change anything on the page...
In the case
In the case at
http://www.ruskullhouse.com/content/test-0
it seems that the author picture and info on left hand side is causing the whitespace in the post.
Try the _stacked advanced forum style
you have to edit the file
you have to edit the file within the naked style's css also: advanced_forum.naked.structure.css because it will still get the min-height property from that file. do the same as above and it works. :-)
in other words, once you edit both advanced_forum.[your-style].structure.css and advanced_forum.naked.structure.css to get rid of the min-height, there should be no more space.