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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T22:57:30+00:00 2026-05-22T22:57:30+00:00

I have a menu: <div class=headerMenu> <ul> <li><a href=#>Home <span>Home Page<span></a></li> <li><a href=#>About <span>About

  • 0

I have a menu:

<div class="headerMenu">
    <ul>
        <li><a href="#">Home <span>Home Page<span></a></li>
        <li><a href="#">About <span>About My Website<span></a></li>
        <li><a href="#">Contact <span>Get in touch<span></a></a></li>
    </ul>
</div>

My current CSS is as follow:

.headerMenu{
    width: 100%;
}

.headerMenu ul{
    margin: 0; 
    padding: 0;
    float: left;
}

.headerMenu ul li{
    display: inline;
}

.headerMenu ul li a{
    float: left;
    color: white;
    padding-top:25px;
    padding-left:50px;
    font-size:24pt;
}

.headerMenu ul li a:visited{
    color: white;
}

.headerMenu ul li a:hover, .menu ul li .current{
    color: #fff;
    background: url(../../Content/Images/menu-selector.png) repeat-x; /* 25x10 arrow/*
}

And now for the question:

  1. How can i get the content in the span tag to be below the Main text.
  2. When i hover over the anchor, How do i add the hover image as shown in screen shot

The Mockup i created in Photoshop looks like this:

enter image description here

I know this would be easily achievable by making use of images, but my solution requires that menu to be created dynamically.

  • 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-22T22:57:30+00:00Added an answer on May 22, 2026 at 10:57 pm

    1) How can i get the content in the span tag to be below the Main text.

    You need to use display: block on the span to have it appear on a new line:

    .headerMenu ul li a span {
      display: block;
    }
    

    2) When i hover over the anchor, How do i add the hover image as shown in screen shot

    Try to center the arrow to the top. This might work:

    .headerMenu ul li a:hover, .menu ul li .current {
      color: #fff;
      background: url(../../Content/Images/menu-selector.png) no-repeat center top;
      display:block;
      /* also make sure that you use display block with correct height
       so that you can positionate the arrow on the correct place... */
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following HTML: <div class=menu> <a class=main-nav-item href=home>home</a> <a class=main-nav-item-current href=business>business</a> <a
I have a dropdown menu: <div class=buttons> <div class=dropdown> <a href=# class=button><span class=label>File</span><span class=toggle></span></a>
I have multiple menues on my page... <div class=menu> <div>Menu header</div> <div>Menu content</div>// should
Assuming I have this HTML structure: <ul class='menu'> <li> <div></div> <div> <div></div> <div> <a
I have this html structure <div class=top_menu> <ul> <li class=left><a href= class=family-filter>asdas</a></li> <li class=welcome>Welcome
I have a horizontal menu navigation. The code is: <div class=menu-holder> <ul class=menu> <li>
I have something along the lines of this <div class=menu style=background-color: transparent;> <div class=button>
Ok so I have the follow menu: <div class=header> <div id=logo></div> <ul class=menu> <li><a
I have the following: <div class=btn-group> <input disabled=disabled id=dialogType> <button data-toggle=dropdown class=dropdown-toggle> <span class=caret></span>
Just trying to add a class to the menu item of the current page

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.