XF 1.1 Design issue: Background of forum search

twollert

Active member
How can I change the background color of the forum search form, WITHOUT setting the value for .xenForm in the EXTRA.css? By default it's transparent, but I want it to be white:

searchform.webp

(Can't change the value of .xenForm because it's also controlling the login bar.)

Thanks for your help!
 
Thanks, Jake! I tried that with the default style, but

Code:
.search_form .xenForm
{
    background-color: green;
}

didn't work at all. That's strange!

The code

Code:
.xenForm
{
background-color: green;
}

is changing the background color of the search and login form to green.

Any other ideas?
 
There are three search templates: search_form, search_form_post, search_form_profile_post

Try adding it for all three so it works no matter which tab is selected.
 
Perfect - that's it! search_form was only for one tab.

Code:
.search_form .xenForm
{
    background-color: green;
}
 
.search_form_post .xenForm
{
    background-color: green;
}
 
.search_form_profile_post .xenForm
{
    background-color: green;
}

works great. Thank you! (y)
 
Top Bottom