Ready to get started?Download WordPress


Google Custom Search
Resizing search box (2 posts)

  1. gezginrocker
    Posted 2 years ago #

    when I implement <?php display_search_box($display_results_option); ?> at a template, the search box displayed is too long. how can I modify it with css? I tried "input.gsc-input { width: 50%" as suggested before, but it's not working.thanks


  2. templs
    Posted 2 years ago #

    Check my site as exmaple.
    I've set 50% in a div:
    <div id="cse-search-form45" style="width: 50%;">
    And 94% for "input.gsc-input". But this second property I've set after JS initialization. Maybe otherwise your "input.gsc-input { width: 50%" is reassigned by other CSSs.
    Use Firebug for Firefox to see what happens there.

    Hope it helpful...

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic