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

  • SEARCH
  • Home
  • 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 6547543
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T11:50:38+00:00 2026-05-25T11:50:38+00:00

I have a dropdown menu which at at the minute has a different coloured

  • 0

I have a dropdown menu which at at the minute has a different coloured title above different sections in the menu e.g

Title (colour1)

option1 (colour2)

(Above and below)

I would like to change it so that on the list it looks is as follows (two colours on one line):

Title (colour1) Option1 (colour 2)

(Side by side)

I asked a question earlier about how to fix this and got an answer. However the list items still go above and below rather than side by side.

the css looks like this:

#drop {
    font-size: 12px;
    font-weight:bold;
    position: fixed;
    z-index:inherit;
    left: 183px;
    width:700px;
    top: 15px;
    }

#drop ul {
    background: #fff;
    list-style-type: none;      
    }

#drop ul li {
    width: 750px;
    float: left;
    list-style-type: none;      
    margin: 0 10px -10 0;
    }

#drop ul li span {
    display: block;
    list-style-type: none;      
    padding: 1px 3px;
    }

#drop ul li ul {
    background: #fff;
    opacity: 0.9;
    list-style-type: none;      
    display: none; 
    padding: 0 0em 0.5em 0;
    }

#drop ul li:hover ul {
    list-style-type: none;      
    opacity: 0.9;
    }

#drop ul li ul li {
    border: none;       
    list-style-type: none;  
    float: none;
    padding-left:0px;
    }

#drop ul li ul li a {
    display: block;
    color: #808285;
    text-decoration: none;
    cursor:pointer;
    }


#drop ul li ul li a:hover {
    background: #d8d8dc;
    }


#drop ul li.section-title SPAN.section-title {
    color:#434442;
    margin-left: -3px;
    }

span.nav-title {
    border-bottom: 1px solid #808285;   
    position:fixed;
    left: 223px;
    width:744px;
    top: 28px;
    cursor:pointer;

    }

And the Html like this:

<div id="dropbox"></div>
                    <div id="Dropp style="position:relative;z-index:1000">
<div id="drop" style="position:absolute;z-index:3000">
    <ul>
        <li id="dropbox"><span class="nav-title" style="z-index:3000">Deutsche Börse Photography Prize 2011</span> <div class="nav-title" id="triangle">
                    </div>
            <ul id="ddd" class="subnav" style:"display: none;" >
                <br>
            <br>
            <br>
            <li>—</li>
            <li class="section-title">
                <span class="section-title">Photographers Gallery</span>
            </li>
                <li><a href="Deutsche Börse Photography Prize 2011.html">Deutsche Börse Photography Prize 2011</a></li>
                <li><a href="#">Deutsche Börse Photography Prize 2010</a></li>

And there is an example of it in use here:
http://www.deanpauley.co.uk/O-SB/categories.html

The advice I was given was to change it to:

<ul>
    <li class="section"><span class="title">Title 1</span><span class="content">Color 2</span></li>
    <li class="section"><span class="title">Title 1</span><span class="content">Color 2</span></li>
    <li class="section"><span class="title">Title 1</span><span class="content">Color 2</span></li>
</ul>

Can anyone help? Is it to do with the padding/margins that the text wont go on the same line?

  • 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-25T11:50:38+00:00Added an answer on May 25, 2026 at 11:50 am

    Not sure if this is exactly what you mean but it will achieve what I think you want!

    <ul>
        <li class="section" style="overflow:hidden">
            <span class="title" style="display:block; float:left; width:somewidth">Title Color 1</span>                        
            <ul class="content" style="width:somewidth; float:left">
                <li>Content Color 2</li>
                <li>Content Color 2</li>
                <li>Content Color 2</li>
                <li>Content Color 2</li>
            </ul>
        </li>
    </ul>
    

    Excuse the inline styles, but i’m lazy this afternoon 🙂

    That will result in:

    Title Color 1 –>
    Content Colour 2
    ->__________ Content Colour 2
    ->___________ Content Colour 2
    ->___________ Content Colour 2

    Replace ‘somewidth’ with the widths you require – will keep it more uniform and less buggy than using auto widths. But you could use auto widths and add styling for ie6 – which wont play ball!

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

Sidebar

Related Questions

I have a dropdown menu which at at the minute has a different coloured
I have dropdown menu..which is dynamic.. How can get value of the last item
I have a little dropdown menu similar <select> , which contolled from external js-function.
I have an issue where the dropdown menu options appear beneath the swfobject which
I have a drop down navigation menu in which some of the title should
I have a dropdown menu which I want to position ontop of everything else.
I have a dropdown menu that is filled by a mysql database. I need
I have created a dropdown menu with jquery: here Everything is ok but in
I have 2 questions concerning C#. 1) I have a dropdown menu with several
I have a shopping cart that displays product options in a dropdown menu 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.