SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Thread: Fixing Width of Search Box

  1. #1
    SitePoint Guru
    Join Date
    Feb 2007
    Posts
    613
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Fixing Width of Search Box

    Hi,

    I am trying to fix the width of a search box. When I use different browser the search box is either to short or to long. I think the best way is to use percentages and add the search button also in percentage but the percentage on the search box has no affect. So for example search box is 80% and search button is 20%.

    Does anyone have any suggestions on how to ensure a search box remains full width?

  2. #2
    It's all Geek to me silver trophybronze trophy
    SitePoint Award Recipient ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, Australia
    Posts
    20,297
    Mentioned
    225 Post(s)
    Tagged
    3 Thread(s)
    It would be easier if we could see an example. For full width, use something like width: 100% (or a bit less).
    Facebook | Google+ | Twitter | Web Design Tips | Free Contact Form

    Try your hand at the new JavaScript Challenge!

    If you don't like getting your feet stuck in a bog, avoid Twitter BootsTrap.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •