WordPress.org

Forums

Google Custom Search
Resizing search box (2 posts)

  1. gezginrocker
    Member
    Posted 3 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

    http://wordpress.org/extend/plugins/google-custom-search/

  2. templs
    Member
    Posted 3 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

  • Google Custom Search
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic