Need small css help

Discussion in 'CSS' started by becomeme, Dec 6, 2009.

  1. #1
    Hi I need to place my search box at the top right. Can someone please help me with this... my website is http://petmedssource.com will pay $3 for a quick job.
     
    becomeme, Dec 6, 2009 IP
  2. becomeme

    becomeme Active Member

    Messages:
    188
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #2
    can anyone help with this?
     
    becomeme, Dec 7, 2009 IP
  3. FreeWebsiteHostingReviews

    FreeWebsiteHostingReviews Peon

    Messages:
    14
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Try adding this code to the top CSS id tag:

    ...
    #top { }
    #top form { position:absolute; right:0; top:0; }
    #top img { }
    ...

    and then adding the form to the beginning of your HTML code:

    <body>

    <div id="top">
    <form action="search/search.php" method="get">

    <input class="txtBox"type="text" name="query" id="query" size="14" value="" action="include/js_suggest/suggest.php" columns="2" autocomplete="off" delay="1500">
    <input type="submit" value="Search">
    <input type="hidden" name="search" value="1">
    </form>

    <a href="http://petmedssource.com/index.html"><img src="http://petmedssource.com/images/logo.gif" alt="pet meds" height="66" border="0" /></a>

    ...

    This should place the form to upper right of the page within the content area.