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

  • Home
  • SEARCH
  • 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 9135525
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T08:50:10+00:00 2026-06-17T08:50:10+00:00

I have a menu where each link is a div box. This div box

  • 0

I have a menu where each link is a div box. This div box have a gray border-bottom, however, when the link is visited it turns black. I just can’t figure why.

On the following image I’ve clicked the Rediger profil and Log af links.

enter image description here

JSFiddle: http://jsfiddle.net/LpGbT/

HTML

        <div id="design_sidebar">
            <div id="design_sidebar_head">
                Patrick Reck
            </div>

            <a href="#"><div class="design_sidebar_menu_item">Besøgende</div></a>
            <a href="#"><div class="design_sidebar_menu_item">Mine favoritter</div></a>
            <a href="<?php echo site_url('profile/editProfile');?>"><div class="design_sidebar_menu_item">Rediger profil</div></a>
            <a href="<?php echo site_url('user/logout');?>"><div class="design_sidebar_menu_item">Log af</div></a>
        </div>

CSS

a {
    text-decoration: none;
}

#design_sidebar {
    width: 200px;
    float: left;

    border: 1px solid #d6d6d6;
    -moz-border-radius: 2px;
    border-radius: 2px;

    background-color: white;
}

#design_sidebar_head {
    width: 165px;
    height: 30px;

    font-family: Segoe; 
    font-size: 14px;
    font-weight: bold;
    color: #333333;

    padding-top: 10px;
    padding-left: 35px;
    border-bottom: 1px solid #d6d6d6;

    background-image: url('../img/icons/user.png');
    background-repeat: no-repeat;
    background-position: 10px 11px;
    background-color: #f7f7f7;
}

.design_sidebar_menu_item {

    padding: 5px;
    padding-left: 10px;

    font-size: 14px;
    color: #333333;

    border-bottom: 1px solid #d6d6d6;
}

.design_sidebar_menu_item:hover {
    color: white;

    background-color: #a6242f;
}
  • 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-17T08:50:11+00:00Added an answer on June 17, 2026 at 8:50 am

    If it doesn’t harm your design etc. I would suggest this:

    HTML:

    <div id="design_sidebar">
    <div id="design_sidebar_head">
    Patrick Reck
    </div>
    <a href="#">Patrick Reck</a>
    <a href="#">Besøgende</a>
    <a href="#">Mine favoritter</a> 
    <a href="<?php echo site_url('profile/editProfile');?>">Rediger profil</a>
    <a href="<?php echo site_url('user/logout');?>">Log af</a>
    </div>
    

    CSS:

    div#design_sidebar a {
    text-decoration: none;
    padding: 5px;
    padding-left: 10px;
    font-size: 14px;
    color: #333333;
    border-bottom: 1px solid #d6d6d6;
    display: block;
    }
    
    div#design_sidebar a:hover {
    color: white;
    background-color: #a6242f;
    }
    
    #design_sidebar {
    width: 200px;
    float: left;
    border: 1px solid #d6d6d6;
    -moz-border-radius: 2px;
    border-radius: 2px;
    background-color: white;
    }
    
    #design_sidebar_head {
    width: 165px;
    height: 30px;
    font-family: Segoe;
    font-size: 14px;
    font-weight: bold;
    color: #333333;
    padding-top: 10px;
    padding-left: 35px;
    border-bottom: 1px solid #d6d6d6;
    background-image: url('../img/icons/user.png');
    background-repeat: no-repeat;
    background-position: 10px 11px;
    background-color: #f7f7f7;
    }
    

    EDIT:

    How about adding:

    a {
        text-decoration: none;
        display: block;
        border-bottom: 1px solid #d6d6d6;
    }
    

    And removing border-bottom: 1px solid #d6d6d6; from .design_sidebar_menu_item {...}
    The others will need links around them for this to work.

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

Sidebar

Related Questions

Scenario: I have an outline where I have links for my menu. Each link
I have a menu bar and I want to create a div for each
So, I have an accordion menu and in each div I have a red
I have this Jquery code: $(document).ready(function() { // Do menu mouseovers $('.bar a').each(function() {
I have a nested ul menu structure that starts off like this: <div id=left>
All, I have a horizontal menu bar. When the user hovers over each link
I have a Menu where each MenuItem in the hierarchy has its Command property
I have a menu structure that is supposed to highlight each item as it
I am creating a menu and for each menu component, I have a specific
I have a header menu and try to define different CSS classes for each

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.