Currently working on designing a dropdown list using CSS. Below is the HTML code I am using:
I have applied a border-right property to each
li a
element withborder-right:1px dashed silver
. However, I am trying to remove this property for the lastli a
element.
Here is the corresponding CSS code:
#navigation
{
display:inline-table;
text-align:center;
background:silver;
}
#navigation li
{
float:left;
list-style:none;
padding:2px 10px 2px 10px;
}
#navigation a
{
display:block;
text-decoration:none;
color:green;
font-weight:bold;
padding:5px;
border-right:1px dashed green;
}
.noBorder
{
display:block;
text-decoration:none;
color:red;
font-weight:bold;
padding:5px;
border:0px;
}
#navigation a:hover
{
color:yellow;
background:black;
}
I attempted to remove the right-border from the last "Software Developments" list item using the noBorder
class, but haven't found a solution yet. Can someone please provide assistance? Thanks in advance!