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 7172051
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T15:32:13+00:00 2026-05-28T15:32:13+00:00

Here you can see the code: http://jsfiddle.net/LQSK3/1/ I can’t get display: inline; working there

  • 0

Here you can see the code: http://jsfiddle.net/LQSK3/1/

I can’t get display: inline; working there for every li element.
Also got the problem width the line.png image, as it’s height is the same as the font height, I want it to has 35px height with margin left and right set to 5px.

Where is the problem?

  • 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-28T15:32:14+00:00Added an answer on May 28, 2026 at 3:32 pm

    You need to update your style sheet. Please add this new style:

    #menu {
      position: relative;
      clear: both;
      top: -3px;
      background-color: coral;
      border: 1px solid black;
      width: 800px;
      height: 35px;
      float:left;
    }
    
    li { display: inline;float:left; }
    
    #menu ul {
       position: absolute;
       font-family: Century Gothic, sans-serif;
       font-size: 14px;
       list-style-type: none;
       padding: 0;
       margin: 9px 0 0 123px;
       width: 649px;
       height: 39px;
       color: #FFF;
       float:left;
    }
    
    a { font-weight: bold; color: red; text-decoration: none; }
    a:hover { text-decoration: underline; }
    
    #menu a {
    background: url('http://i.imgur.com/rzNj0.png') top right no-repeat;
    width: 65px;
    height: 18px;
    float: left;
    margin: 0px 5px;
    }
    

    You need to add float: left; to menu div,ul,li and a . Also should set width and height and margin of the a tag.

    Here is a working sample : http://jsfiddle.net/YjeBs/

    Hope this helps 🙂

    EDIT:

    If you want your line to extend from top to bottom of the menu div you can change your styles to:

    #menu {
       position: relative;
       clear: both;
       top: -3px;
       background-color: coral;
       border: 1px solid black;
       width: 800px;
       height: 35px;
       float:left;
    }
    
    li { 
    float: left;
        height: 35px; 
        display:inline;
    }
    
    #menu ul {
    color: #FFFFFF;
        float: left;
        font-family: Century Gothic,sans-serif;
        font-size: 14px;
        height: 35px;
        list-style-type: none;
        margin: 0 0 0 123px;
        padding: 0;
        position: absolute;
        width: 649px;
     }
    
     a { font-weight: bold; color: red; text-decoration: none; }
     a:hover { text-decoration: underline; }
    
     #menu a {
    background: url("http://i.imgur.com/rzNj0.png") no-repeat scroll right top transparent;
        float: left;
        height: 29px;
         margin: 0 5px;
        padding-top: 8px;
        width: 65px;
     }
    

    Hope this is you want 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a working version of my code here: http://jsfiddle.net/5Hqs3/24/ As you can see,
You can see the code live here: http://jsfiddle.net/z3xV3/50/ My HTML: <div id=slider></div> <input id=sliderValue
Here is my code http://jsfiddle.net/AB6J3/7/ you can see, edit, etc. When I roll over
Here's my code: http://jsfiddle.net/ZspZT/ As you can see from the example, the fourth div
here are the codes and preview >> http://jsfiddle.net/shingou/PGFxZ/ as you can see I've used
I'm trying to create a header menu. Please see my code here: http://jsfiddle.net/kc2cc/ .
Here you can see what I'm trying to do: http://jsfiddle.net/smogg/QFa4J/2/embedded/result/ I was trying to
Here I posted a demo http://jsfiddle.net/LxYMv/1/ . As you can see <body> gets margin-top:10px
I have updated the code I am working on here http://jsfiddle.net/dFfJm/ At the first
You can see here what i am doing: http://www.arvag.net/otkrijte-svet/leto/ So its pulling 2 custom

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.