What's new
HTML Forums | An HTML and CSS Coding Community

Welcome to HTMLForums; home of web development discussion! Please sign in or register your free account to get involved. Once registered you will be able to connect with other members, send and receive private messages, reply to topics and create your very own. Our registration process is hassle-free and takes no time at all!

navigation bar code

br0wnr1g

New member
Hi All, Is anyone able to help with html only horizontal navigation bar. Looking for a nav bar much like the one on this site, without the drop down menus but with a colour background. Has to be html, no css. Can anyone help or point me to an existing resource?
Many thanks
 
/* Add a black background color to the top navigation */
.topnav {
background-color: #333;
overflow: hidden;
}

/* Style the links inside the navigation bar */
.topnav a {
float: left;
color: #f2f2f2;
text-align: center;
padding: 14px 16px;
text-decoration: none;
font-size: 17px;
}

/* Change the color of links on hover */
.topnav a:hover {
background-color: #ddd;
color: black;
}

/* Add a color to the active/current link */
.topnav a.active {
background-color: #4CAF50;
color: white;
}

Hope this helps you.

Apps4Rent | O365CloudExperts | CloudDesktopOnline
 
Back
Top