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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T15:56:41+00:00 2026-05-25T15:56:41+00:00

I would like two different colours on each line of a list. There is

  • 0

I would like two different colours on each line of a list. There is an example of the drop down list here http://deanpauley.co.uk/O-SB/categories.html
So rather that the dark grey “Photographers Gallery” being above the light grey “Deutche Borse photography prize 2011” I would like them as to be beside each other on the same line of the list.

The code is as follows:

<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 2010</a></li>

And the CSS:

#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;

    }

I am really new at coding so any advice would be much appreciated. Can’t get my head around this at all!

  • 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-25T15:56:42+00:00Added an answer on May 25, 2026 at 3:56 pm

    We’ll start as if there was only the following HTML (the HTML of the list)

    <ul id="ddd" class="subnav" style:"display: none;" >
      <br>
      <br>
      <br>
      <li>—</li>
      <li><a href="#">Deutsche Börse Photography Prize 2010</a></li>
      ...
    </ul>
    

    (Note that I removed the title text)

    So your problem can be summed up like that:

    • Step 1 :

      You need to add the text before each item

      To do that, assuming that you don’t know exactly the structure of the menu, you’ll have to do some copy/paste:
      each line would be like that:

       <li>
          <span class="section-title">Photographers Gallery</span>
          <a href="#">Deutsche Börse Photography Prize 2010</a>
       </li>
      

      You’ll need to change the text for every line.

    • Step 2:

      You need to color the text.
      This is easy, it’s already done in the CSS, with the following:

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

      We’ll change it to be a bit less specific

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

    And that should do it :)

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

Sidebar

Related Questions

I would like to alter two different tables from an HTML post request to
I would like to build two different versions of my app using different android:minSdkVersion.
I would like to have two different log4j loggers in my application, and for
I would like to combine the DisplayNames from two different ViewModels, but only IF
I would like to have a form that can submit to two different action
I have two different tables, lead and click. I would like to query MySQL
I have two different .Net projects, hosted on github. I would like to create
I have two images which i would like to compare and do different operations
I would like to know is there any difference in performance between these two
I would like to load two different versions of the same dll within the

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.