• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.1 Design issue: Background of forum search

twollert

Active member
#1
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.png

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

Thanks for your help!
 

twollert

Active member
#5
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?
 

Brogan

XenForo moderator
Staff member
#6
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.
 

twollert

Active member
#7
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)