Support » Themes and Templates » Search form background color

  • I’ve a problem with the theme I’m using (Fluidity – 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 – because of the white form on white background.

    I’m using

    <div id=”searchdiv”>

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

Viewing 1 replies (of 1 total)
  • 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">
    <form id="searchform" method="get" action="/index.php">
    <input type="text" name="s" id="s" size="15" />
    <input type="submit" value="Search" />

    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.

Viewing 1 replies (of 1 total)
  • The topic ‘Search form background color’ is closed to new replies.