How can I change the message sidebar background (in the WoltLab Basic style) without changing the forum sidebar background?

Change message sidebar background?
-
- WBB 4.1.x
-
LogixX -
July 14, 2016 at 12:14 PM
-
-
- Official Post
.message { background-color: red; }
-
.message { background-color: red; }
Thank you, Alexander. I never tried that because I assumed it would change the background of the post as well.
-
- Official Post
Yeah, but the message view is actually built with floats and they don't offer a sane way to have both the left and the right part to be of an equal height. The sidebar is usually much shorter than the message on the right, but by setting a background color for the message container it visually appears to be the same height. The content itself has a different background-color set, rounding up the illusion.
Take a look at the screenshot below, it shows how large the sidebar actually is compared to what it appears to be:
This is actually a quite common trick to counter this problem, luckily with the next major we can use CSS3's flexbox to create true equal height containers, eliminating the need for these kind of dirty work-arounds
Participate now!
Don’t have an account yet? Register yourself now and be a part of our community!