There's an awful lot of white space between the contents of a forum discussion, and the attachments section. But I can't for the life of me find in the CSS where that can be altered.
Announcement
Collapse
No announcement yet.
Would like less space between a froum post and the attachments section, can't find CSS
Collapse
X
-
In the b-post-attachments.css template you would see this code:
Code:.b-post-attachments { padding: 5px; padding-{vb:stylevar left}: 9px; color: {vb:stylevar module_tab_text_color}; border-radius: 3px; border: {vb:stylevar post_border}; background: {vb:stylevar contententry_panel_background}; clear: both; }
You can see the CSS documentation on your site by adding to /special/css-examples when viewing your site in your browser. On this page, it will show the different CSS blocks and clicking on Edit will take you to the template that contains that block of code.
www.yoursite.com/pathtovbulletin/special/css-examplesTranslations provided by Google.
Wayne Luke
The Rabid Badger - a vBulletin Cloud demonstration site.
vBulletin 5 API
Comment
-
Thanks Wayne, I was able to adjust the whitespace to be less, by doing this (in case anyone is interested):
Code:/* less white space in the body of forum posts between text, attachments, signature */ .OLD__post-content { min-height: 130px; } .b-post .b-post-attachments { margin-top: 40px; clear: none; } .post-signature { clear: none; }
Last edited by StephenKay; Tue 25 Sep '18, 10:56pm.
Comment
-
Make sure it works well in all cases including posts without signature
Comment
-
Glenn - thanks, I did. It seems to work really well. In a short post with no signature, the height of the text area is governed by the contents of the left sidebox containing the poster's info. In a very short post with a signature, the min-height: 130px is what makes the signature look the same as it normally would. Anyway, I'll be watching to see if I notice any side effects.
-
-
I did a quick check on the CSS by applying it here and I noticed that min-height is getting applied on the comments too. You have to adjust the CSS to only target the OLD__post-content for the reply and not comment:
Code:[COLOR=#FF0000].b-post__content[/COLOR] .OLD__post-content { min-height: 130px; } .b-post .b-post-attachments { margin-top: 40px; clear: none; } .post-signature { clear: none; }
Comment
-
You also need to do this for desktop only.
Code:.l-desktop .b-post__content .OLD__post-content { min-height: 130px; } .l-desktop .b-post .b-post-attachments { margin-top: 40px; clear: none; } .l-desktop .post-signature { clear: none; }
Comment
-
Glenn - what does that affect? I'm usually using desktop/computer to view this stuff...
-
You need to apply the CSS to desktop only. The mobile doesn't have the big space issue. The above CSS will target large screen devices only.
-
Thanks, will do. The iPhone and IPad I tested showed little difference either way, but you're correct, they don't need to be corrected for this issue (if you find it an issue). You are the CSS guru!
-
Related Topics
Collapse
-
by xwang18That label takes up a lot of space and I'd like to remove them under each forum. Is there a way to do that in Control Panel?
Thanks-
Channel: Support Issues & Questions
Thu 5 Oct '17, 4:05pm -
Comment