Navigaton Bar Help

Discussion in 'HTML & Website Design' started by mandela101, Apr 22, 2011.

  1. #1
    - I have recently change my navigation bar which you can browse by going to http://www.juicersuperstore.com. I have two problems with it: first, for some reasons the search box is not displaying on the navigation bar when using Firefox, instead it's showing up below it. The bar works with Explorer though.
    - Second, I want the search box to be on the right side but I have no idea how to do that either.

    Here is how the code is in my header

    " <table border="0" width="100%" cellspacing="2" cellpadding="0">

    <div id="navbar">
    <ul><li><a href="index.php">home</a></li>
    <li><img src="images/line-vert.jpg" alt="Call us" width="2" height="13"></li>
    <li><a href="https://www.juicersuperstore.com/login.php">login</a></li>
    <li><img src="images/line-vert.jpg" alt="Call us" width="2" height="13"></li>
    <li><a href="https://www.juicersuperstore.com/contact_us.php">contact us</a></li>

    <li style="align:right;"><form name="quick_find" action="http://www.juicersuperstore.com/advanced_search_result.php" method="get">
    <input type="text" name="keywords" size="25" maxlength="30" style="height:18px; background:#fff; width: 100px; border:1px solid #ccc;">
    <input type="hidden" name="osCsid" value="1a1e4898076b3838b4211e120b55b0bc">
    <input rel="nofollow" type="image" name="search" src="templates/niche1/images/button_ok.png" align=absmiddle style="margin-top:1px;" />
    </form></li>
    </ul></div>
    </tr>
    </table>"

    Thanks in advance
     
    mandela101, Apr 22, 2011 IP
  2. emforce

    emforce Member

    Messages:
    308
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    30
    #2
    Firstly, why are you using tables? Very bad/outdated style of coding. I would recommend that you have a container div for the nav bar and then a div for the links and float that left using css, then have a div for the search form and then float that right.
     
    emforce, Apr 22, 2011 IP
  3. Zetiz

    Zetiz Active Member

    Messages:
    668
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    80
    #3
    Do it using CSS. It will be easy to design and also maintain.. For some other help: reply your query here!
     
    Zetiz, Apr 22, 2011 IP