SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Guru
    Join Date
    Feb 2007
    Posts
    731
    Mentioned
    2 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
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    24,167
    Mentioned
    453 Post(s)
    Tagged
    8 Thread(s)
    It would be easier if we could see an example. For full width, use something like width: 100% (or a bit less).


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
  •