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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T04:04:32+00:00 2026-05-28T04:04:32+00:00

I would like to have a little triangle underneath the the text that points

  • 0

I would like to have a little triangle underneath the the text that points up when the user hovers over the different tabs. Here is a bit of code I’m working with.

css navbar

* {
  margin: 0;
  padding: 0;
  list-style: none;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  margin: 10px;
}

.tab {
  width: 100%;
  padding: 5px;
  background: #fff;
  color: #000;
  cursor: pointer;
  font-weight: bold;
  border-bottom: 1px solid black;
  position: relative;
}

.tab:hover {
  background: #a0a0a0;
}

.tab:hover span {
  display: block;
}

.tab_child {
  padding: 15px;
  background: #fff;
}

.selected {
  background: #a0a0a0;
}

.contain * {
  float: left;
  width: 100px;
}

span.triangle {
  background-image: url("http://www.inner.org/torah_and_science/mathematics/images/triangle.gif");
  background-repeat: none;
  display: none;
  height: 14px;
  width: 16px;
  position: absolute;
  top: 25px;
  left: 25%;
}
<div class="contain">
  <div id="one" class="tab selected">Link1</div>
  <div id="two" class="tab">Link2</div>
  <div id="three" class="tab">Link3</div>
  <div id="four" class="tab">Link4</div>
  <div id="five" class="tab">Link5</div>
</div>
  • 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-28T04:04:33+00:00Added an answer on May 28, 2026 at 4:04 am

    I think this is probably what you’re looking for:

    Fiddle

    Also, please use semantic markup:

    1. If your using HTML5 wrap your navigation in <nav> tags.
    2. Your links (if they really are going to be links) should be <a> elements.
    3. For a list of links like you have it is advised to use a list (<ul> & <li>).
    body {
      font-family: Arial, Helvetica, sans-serif;
      font-size: 11px;
    }
    
    nav ul {
      margin: 0;
      padding: 0;
      list-style: none;
    }
    
    nav li {
      float: left;
      width: 20%;
    }
    
    nav a {
      display: block;
      padding: 5px;
      border-bottom: 1px solid black;
      background: #fff;
      color: #000;
      font-weight: bold;
      position: relative;
    }
    
    nav a:hover,
    .active {
      background: #bbb;
    }
    
    nav a:hover:after {
      content: "";
      display: block;
      border: 12px solid #bbb;
      border-bottom-color: #000;
      position: absolute;
      bottom: 0px;
      left: 50%;
      margin-left: -12px;
    }
    <nav>
      <ul>
        <li><a href="#" class="active">Link1</a></li>
        <li><a href="#">Link2</a></li>
        <li><a href="#">Link3</a></li>
        <li><a href="#">Link4</a></li>
        <li><a href="#">Link5</a></li>
      </ul>
    </nav>
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to have an .emacs setting so that tabs are always formed
I have an iPhone app that I would like to port over to the
I have a MainMenu in my app and I would like to have little
I have a little problem where I would like to insert a svn diff
I have a little experience with WCF and would like to get your opinion/suggestion
So in my project i would like have a nice treeview that has images.
I would like to have a QMainWindow that can change it's look at runtime,
I have little bit confusion regarding apache tomcat installation. So, I would like to
I have a little math problem. I would like to have a function with
I would like to have it so that when I play one Vimeo video

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.