WordPress.org

Ready to get started?Download WordPress

Forums

Search form background color (2 posts)

  1. getaroundbetter
    Member
    Posted 7 years ago #

    I've a problem with the theme I'm using (Fluidity - http://kaushalsheth.com) and the background of the serach form - which is currently white. I tried to change the form color - only the form field, not the whole Search section, but failed. Users are currently not able to see my search form on http://getaroundbetter.de - because of the white form on white background.

    I'm using

    <div id="searchdiv">

    tried several atributes, but none worked. Any help appreciated.

  2. onocrotalus
    Member
    Posted 7 years ago #

    Your styling for "searchdiv" is incorrect CSS code; it should be in the form

    #searchdiv { border: 1px solid #000; }

    or whatever colour, line thinkness, etc. Also, "searchdiv" wraps the whole of the search area in the sidebar, as the HTML of your page shows:

    <div id="searchdiv">
    <ul>
    <form id="searchform" method="get" action="/index.php">
    <li><h2>Search</h2></li>
    <div>
    <input type="text" name="s" id="s" size="15" />
    <input type="submit" value="Search" />
    </div>
    </form>
    </ul>
    </div>

    The id of the search box itself is "s". So if you add a style for "s" in your CSS file, you will be able change its appearance, e.g.

    #s { border: 1px solid #000; }

    See these CSS resources from the codex for more info.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags