troubleshooting Question

CSS setting for Tab border when page loads

Avatar of angel7170
angel7170Flag for United States of America asked on
CSSHTMLASP.NET
3 Comments1 Solution24 ViewsLast Modified:
Hello,

I am having trouble setting the styles for the navigation tabs. I don't want any border or the background when the tab is clicked, focused or hovered over. Below CSS is not working when the page loads for the first time after than when I click it removes the border style. Please help.

Here is my css and html code.

.nav > li {
	font-family: myFirstFont;
	color: black;
	font-size: 25px;
	border-bottom: 3px solid transparent;
	border: 0px;
	outline: none !important;
	box-shadow: none !important;
	background: none;
}


	.nav > li > a.active, .nav > li > a.active:focus, .nav > li > a.active:hover {
		border: 0px;
		border-bottom: 3px solid #B98D2D;
		outline: none !important;
		box-shadow: none !important;
		background: none;
	}


	.nav > li a:hover {
		border-bottom: 3px solid #B98D2D;
		border: 0px;
		background: none;
	}

	.nav > li.a:focus {
		border-bottom: 3px solid #B98D2D;
		border: 0px;
		background: none;
	}

<ul class="nav nav-tabs">
                <li role="presentation" class="active"><a data-toggle="tab" href="#cdptools">CDP TOOLS</a></li>
                <li role="presentation"><a data-toggle="tab" href="#reporting">REPORTING</a></li>
                <li role="presentation"><a data-toggle="tab" href="#faq">FAQ</a></li>
            </ul>

Tab
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 3 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros