Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 939733
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T21:50:17+00:00 2026-05-15T21:50:17+00:00

I have my navigation bar using unordered links and using jquery for ui effects.

  • 0

I have my navigation bar using unordered links and using jquery for ui effects. This works fine. Now I have designed a search bar which matches the theme of the bar and wanna position it to the right of the nav bar. kinda like the vimeo website..

The problem is that i cannot include it in the same list cos i dont want the jquery effects to be applied to the search bar. How do i position it to the right of nav bar??

Heres the css i tried but doesnt work

.search{
background-image:url('search.jpg');
margin-top:inherit;
margin-left:inherit;

width:200px;
height:40px;

}

here goes the html

<div class="search">
    <input type="text" id="searchField" />
    <img src="go.jpg" alt="Search" onclick="alert('You clicked on search button')"         /></div>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T21:50:18+00:00Added an answer on May 15, 2026 at 9:50 pm

    There are a couple options The best option depends on your entire layout. Here are two basic CSS implementations of horizontal navigation list and search inline with each other.

    HTML

    <div id="Navigation">
        <ul>
            <li><a href="#">Link</a></li>
            <li><a href="#">Link</a></li>
            <li><a href="#">Link</a></li>
            <li><a href="#">Link</a></li>
        </ul>
        <div class="search">
            <input type="text" id="searchField" />
            <img src="go.jpg" alt="Search" onclick="alert('You clicked on search button')" />
        </div>
        <br style="clear: both;" />
    </div>
    

    CSS Float

    #Navigation ul
    {
        list-style-type: none;
        margin: 0;
        padding: 0;
    }
    #Navigation ul li
    {
        list-style-type: none;
        margin: 0;
        padding: 0;
        float: left;
    }
    #Navigation ul li a
    {
        display: block;
        height: 40px;
        width: 50px;
    }
    .search 
    {
        background-image:url('search.jpg');
        float: right;
        width:200px;
        height:40px;
    }
    

    CSS Absolute

    #Navigation
    {
        position: relative;
    }
    #Navigation ul
    {
        list-style-type: none;
        margin: 0;
        padding: 0;
    }
    #Navigation ul li
    {
        list-style-type: none;
        margin: 0;
        padding: 0;
        float: left;
    }
    #Navigation ul li a
    {
        display: block;
        height: 40px;
        width: 50px;
    }
    .search 
    {
        position: absolute;
        background-image:url('search.jpg');
        top: 0;
        right: 10px;
        width:200px;
        height:40px;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a navigation bar which is an unordered list with tabs as list
I have a navigation bar which i am using css to highlight on hover
I have this navigation bar with a rollover using css3 animation. It functions great
I have an unordered list that I am using as a simple navigation bar.
I have a navigation bar that tells the user which page is selected by
Good evening, I would like to have a navigation bar which is centralised to
I need to style this navigation bar with css. It's unordered list. What I
This simple HTML5 layout is intended to have a navigation bar on the left
I'm trying to do a navigation bar using css sprites. I have the image
I am using a UIPopover on my navigation bar. I have several UIBarButtonItems and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.