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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T14:50:32+00:00 2026-05-31T14:50:32+00:00

The menu itself: <ul id=menu> <li class=><a href=home.asp>Home</a> </li> </ul> The CSS that is

  • 0

The menu itself:

<ul id="menu">
        <li class=""><a href="home.asp">Home</a> </li>
</ul>

The CSS that is attached to the menu:

#menu li {
    border-right: 1px solid white;
    cursor: pointer;
    display: block;
    float: left;
    font-size: 12px;
    padding: 7px 25px;
    z-index: 100;
}
newMenu.css (line 36)
#menu > li {
    text-align: center !important;
    width: 85px !important;
}
newMenu.css (line 31)
#menu a, #menu a:visited, #menu a:hover, #menu li {
    color: White;
    display: block;
    text-decoration: none;
    z-index: 100;
}

Here is an image to better describe what is happening:

Navigation Menu

What I need to happen is when someone clicks on the purple section to take them to the appropriate link. Right now the blue rectangle is the only way to activate the link.

  • 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-31T14:50:34+00:00Added an answer on May 31, 2026 at 2:50 pm

    DEMO

    to increase the click area of a link, add padding to the a element rather than giving width to the li.

    instead of using width and height to determine the size of the links, let padding do it for you too, making the li stretch to fit. just make sure you set a to display:block so that it will expand.

    if your links have a pre-determined width, it’s best you set the width to the a element also (preferrably min-width so that the cell can expand to the text)

    and to add to that, elements that have float:left are already display:block, so no need to define display:block if it has float:left

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

Sidebar

Related Questions

I'm writing a Cocoa application that installs itself as an menulet in the menu
$('#menu .sub-right').css( 'paddingLeft', $('#menu .sub-left').width() ); nor $('#menu .sub-right').css({'padding-left': $('#menu .sub-left').width()}); ...these work. What
I have this navigation menu: <nav id=hoofd_menu> <a href=portfolio/ title=Portfolio target=_self class=fade portfolio>Portfolio</a> <a
Menu on my site is opening up even when my cursor is not on
In menu.html, I have my menu items(a href links), let's call them, menu_1, menu_2,
Windows XP start menu is divided into two parts, the left and the right.
When a TAction event fires, the Sender is always the action itself. Usually that's
I've got a page manager that keeps a collection of pages (usercontrols), sends itself
I'll try and make this quick: I've an external class that parses the JSON
I have a control that is similar to a Popup or Menu. I want

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.