The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

Google Custom Search
Resizing search box (2 posts)

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