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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T07:39:19+00:00 2026-06-18T07:39:19+00:00

I stucked at this part. I have a menu in HTML like this: <nav>

  • 0

I stucked at this part. I have a menu in HTML like this:

<nav> 
<ul>
                 <li><a href="#">Home</a></li>
                    <li><a href="#">Item1</a>
                        <ul>
                            <li><a href="#">Item1_1</a></li>
                            <li><a href="#">Item1_1</a></li>
                            <li><a href="#">Item1_1</a></li>
                            <li><a href="#">Item1_1</a></li>
                            <li><a id="last" href="#">Last</a></li>
                        </ul>
                    </li>
</ul>
</nav>

The CSS is this:

nav {

margin-left: auto;
margin-right: auto;
width: 100%;    

}

 nav ul ul li a #last {

border-bottom-left-radius: 1em;
border-bottom-right-radius: 1em;

}    


nav ul ul {

display: none;

}

nav ul li:hover > ul {

    display: block;
 }

nav ul {    

background: linear-gradient(top, #ffffff 0%, #ffffff 100%);  
background: -moz-linear-gradient(top, #fffff 0%, #fffff 100%); 
background: -webkit-linear-gradient(top, #ffffff 0%,#ffffff 100%);    
padding: 0px;    
list-style: none;
position: relative;
display: inline-table;
width: 100%;    
text-align: center;

}

nav ul:after {

content: ""; 
clear: both; 
display: block;


}


nav ul li {

width: 20%;
float: left;
text-align: center;


}

nav ul li:hover {

border-top-left-radius: 1em;
border-top-right-radius: 1em;
background: #4b545f;
background: linear-gradient(top, #4f5964 0%, #5f6975 40%);
background: -moz-linear-gradient(top, #4f5964 0%, #5f6975 40%);
background: -webkit-linear-gradient(top, #4f5964 0%,#5f6975 40%);        

}

nav ul li:hover a {

color: #fff;    

}


nav ul li a {

font-family: Arial,Helvetica,sans-serif;
font-size: 0.9em;
font-weight: bold;
display: block; 
padding: 0.9em;
color: #000000; 
text-decoration: none;    

}


nav ul ul {

width: 20%;
background: #5f6975;
border-radius: 0px;
padding: 0;
position: absolute;
top: 100%;


}

nav ul ul li {

font-family: Arial,Helvetica,sans-serif;
float: none;
width: 100%;    
border-top: 1px solid #6b727c;
border-bottom: 1px solid #575f6a;
position: relative;  

}

nav ul ul li a {

font-family: Arial,Helvetica,sans-serif;
font-size: 0.7em;
width: 89%;
padding: 15px 10px;        

}

nav ul ul li a:hover {

background: #4b545f;

}

As You can see there is an id=”last” for the last item at the list, because I want to this item have a rounderd bottom border (left and right side aswell). But I have no idea why its not working :(. Its my first post so sorry for my english, and for the long post aswell 🙂 Plase help me, thank You!

  • 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-06-18T07:39:21+00:00Added an answer on June 18, 2026 at 7:39 am

    For id you need to make css like this:

    nav ul ul li a#last
    

    noticed the difference? the #last is combined with the a.

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

Sidebar

Related Questions

My tabs view look like this (Remember this is not part of application.html.erb, since
Currently I have a stacked bar chart like this ( jsfiddle demo ) I
Similar question from last night, I don't have access to edit the source HTML
I'm working on application which has workflow like this: 1.parsing home page (using HttpURLConnection,
I have written this html, in Firefox, it displayed perfect what I want(the blue
I am stucked at the part where I have to bind a collection to
I am stucked with this for two days. I am trying to use imap_append
I'm creating a stacked bar chart just like this one . Notice that the
I try to check if a string is part of a codepage like CP1254
I'm stucked in this MYSQL SELECT: SELECT episode.name FROM tv.episode JOIN tv.show ON episode.show_id

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.