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 -
14. Juli 2016 um 12:14
-
-
- Offizieller Beitrag
.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.
-
- Offizieller Beitrag
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
Jetzt mitmachen!
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!