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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T09:30:34+00:00 2026-05-25T09:30:34+00:00

hi im building a drop down menu that has to have a thumbnail to

  • 0

hi im building a drop down menu that has to have a thumbnail to the left. at the moment im using <ul>&<li>s to build the menu and ive got the drop down working. the issue im having is when trying to add an image to the left had side it just addes its self to the bottom of the list if that makes sense.

at the moment ive got it working but im hopping someone could suggest a better way

here is my code

<!--the css for the nav bar-->
#navbar
{
     clear: both;
      position: absolute;
     left: 488px;
     width: 466px;
}

#navbar ul{


float:left;
display:block;
}   
#navbar ul li img
{
padding:0px;
margin:0px;
border:none;

}
#navbar ul li{
text-align: center;
display:block;
float:left;
width:55px;
border-left:thin #666 solid;
border-right:thin #666 solid;
}




#navbar li li, #navbar li li a{
height:0px;
margin-top: -100px;
text-align: center;
  zoom: 1;
  background-color:#666;
text-decoration: none;
-webkit-transition:all .2s ease-in-out;
-moz-transition:all .2s ease-in-out;
-o-transition:all .2s ease-in-out;
transition:all .2s ease-in-out;
border:thin #000 solid;
width:93px;
display:table-row;

}

 .navbar link{
color: #ff6600;
text-decoration: none;
}

#navbar li:hover li{
height:auto;
margin-top:0px;
margin-bottom: 0px;
}



#navbar li:hover li a{
color:#FFF;

text-decoration: none;
}

#navbar li li a:hover{
color:#333;
}

#navbar ul ul{
background:black;
}   

#navbar li li:hover li li{
height:auto;
margin-top:0px;
margin-bottom: 0px;
margin-left:-100px;
margin-top:-30px;

}

#navbar li:hover li li{
height:77px;
margin-top:-79px;
margin-bottom: 0px;
margin-left:-96px;
}

#thum
{
width:70px;
z-index:-2;
}

#thum li
{
height:auto;
z-index:-50;
 }


<!--html of nav bar-->
<div id="navbar">
        <ul id="items" >
            <li><a href="#"><img src="img/home_button_56_44.png"/></a></li>
            <li><a href="#"><img src="img/product_56_42.png"/></a>
                    <ul>

                        <li><a href="#">About</a></li>
                        <li><a href="#">About2</a></li>
                        <li><a href="#">About3</a></li>
                        <li>about4
                        <ul id="thum"><li><img src="img/home_button_56_44.png"/></li>     </ul>
                        </li>


                    </ul>


            <li><a href="#"><img src="img/lifestyle_57_42.png"/></a></li>

            <li><a href="#"><img src="img/about_54_42.png" /></a></li>
            <li><a href="#"><img src="img/contact_54_42.png"  /></a></li>
        </ul>
        </div>
}

hope this makes sense i know its a bit cluttered i will be cutting it down before the site goes live

thanks
dan

  • 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-25T09:30:34+00:00Added an answer on May 25, 2026 at 9:30 am

    I would place the thumb image in the first li of the sub menu. Give it a class and float it to the left. This may require a few tweaks depending on the size of your image. This should allow the following lis to fall beside it.

     <html>
    <head>
    <style type="text/css">
    <!--the css for the nav bar-->
    #navbar
    {
         clear: both;
          position: absolute;
         left: 488px;
         width: 466px;
    }
    
    #navbar ul{
    
    
    float:left;
    display:block;
    }   
    #navbar ul li img
    {
    padding:0px;
    margin:0px;
    border:none;
    
    }
    #navbar ul li{
    text-align: center;
    display:block;
    float:left;
    width:55px;
    border-left:thin #666 solid;
    border-right:thin #666 solid;
    }
    
    
    
    
    #navbar li li, #navbar li li a{
    height:0px;
    margin-top: -100px;
    text-align: center;
      zoom: 1;
      background-color:#666;
    text-decoration: none;
    -webkit-transition:all .2s ease-in-out;
    -moz-transition:all .2s ease-in-out;
    -o-transition:all .2s ease-in-out;
    transition:all .2s ease-in-out;
    border:thin #000 solid;
    width:93px;
    display:table-row;
    
    }
    
     .navbar link{
    color: #ff6600;
    text-decoration: none;
    }
    
    #navbar li:hover li{
    height:auto;
    margin-top:0px;
    margin-bottom: 0px;
    }
    
    
    
    #navbar li:hover li a{
    color:#FFF;
    
    text-decoration: none;
    }
    
    #navbar li li a:hover{
    color:#333;
    }
    
    #navbar ul ul{
    background:black;
    }   
    
    #navbar li li:hover li li{
    height:auto;
    margin-top:0px;
    margin-bottom: 0px;
    margin-left:-100px;
    margin-top:-30px;
    
    }
    
    #navbar li:hover li li{
    height:77px;
    margin-top:-79px;
    margin-bottom: 0px;
    margin-left:-96px;
    }
    
    #thum
    {
    width:70px;
    z-index:-2;
    }
    
    #thum li
    {
    height:auto;
    z-index:-50;
     }
    #navbar li li.my-thumb {width:40px;}
    #navbar li .thumb-menu {width:140px;padding:0;}
    </style>
    </head>
    <body>
    
    <!--html of nav bar-->
    <div id="navbar">
            <ul id="items" >
                <li><a href="#">Item 1</a></li>
                <li><a href="#">Item 2</a>
                        <ul class="thumb-menu">
                            <li class="my-thumb"><img width="40" height="40" src="img/home_button_56_44.png"/></li>
                            <li><a href="#">About</a></li>
                            <li><a href="#">About2</a></li>
                            <li><a href="#">About3</a></li>
                        </ul>
                <li><a href="#">Item 3 </a></li>
    
                <li><a href="#">Item 4</a></li>
                <li><a href="#">Item 5</a></li>
            </ul>
            </div>
    </body>
    </html>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Okay so I'm building a CSS drop down menu similar to that on ESPN's
I have been building a CSS drop down menu and I have a slight
In my application, I have a recent files drop down menu. It will contain
I have a drop up/down menu located at http://islandicecream.sitesbyjoe.com (this is a site I'm
I'm building a Zend form that has a dropdown/select menu populated with data from
I'm building a drop-down menu this way: var htmlString = '<select id=sAddress>'; for (var
I'm building a navigation with drop down menus. I'd like the line item that
I'm building a navigation with has a drop down unordered list within an unordered
I'm building a drop down menu which resides in program menu bar and pops
When looking beyond the RAD (drag-drop and configure) way of building user interfaces that

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.