CSS Navigation Bar

CSS navigaiton bar - horizontal and vertical.

Horizontal navigation bar

CSS code:

<style>
    #h_nav_bar a { padding:15px; font-weight:bold; float:left; }
    #h_nav_bar a:link { color:#d0d0d0; background-color:#0000a0; }
    #h_nav_bar a:visited { color:#c0c0c0; background-color:#0000a0; }
    #h_nav_bar a:hover { color:#ffffff; background-color:#000060; }
    #h_nav_bar a:active { color:#f0f0f0; background-color:#00ff00; }
</style>

HTML code:

<div id="h_nav_bar">
    <a href="html-anchor-link.htm">Anchor link</a>
    <a href="html-link-color.htm">Link color</a>
    <a href="../mailto.htm">Email link</a>
    <a href="html-image-link.htm">Image link</a>
    <a href="html-text-link.htm">Text link</a>
</div>

View:

 

 

 

#link_bar a is the style for all states of the link.

#link_bar a:link is the style of regular link.

#link_bar a:visited is the style of visited link.

#link_bar a:hover is the style of mouse hovered link.

#link_bar a:active is the style of link when pressed by the mouse.

Vertical navigation bar

CSS code:

<style>
    #v_nav_bar a { padding:15px; font-weight:bold; display:block; width:120px; }
    #v_nav_bar a:link { color:#d0d0d0; background-color:#0000a0; }
    #v_nav_bar a:visited { color:#c0c0c0; background-color:#0000a0; }
    #v_nav_bar a:hover { color:#ffffff; background-color:#000060; }
    #v_nav_bar a:active { color:#f0f0f0; background-color:#00ff00; }
</style>

HTML code:

<div id="v_nav_bar">
    <a href="html-anchor-link.htm">Anchor link</a>
    <a href="html-link-color.htm">Link color</a>
    <a href="../mailto.htm">Email link</a>
    <a href="html-image-link.htm">Image link</a>
    <a href="html-text-link.htm">Text link</a>
</div>

View:

 

#link_bar a is the style for all states of the link.

#link_bar a:link is the style of regular link.

#link_bar a:visited is the style of visited link.

#link_bar a:hover is the style of mouse hovered link.

#link_bar a:active is the style of link when pressed by the mouse.

 

 


See also

Features of CSS Navigation Bar Tool

Our CSS Navigation Bar Tool allows the users to  CSS Navigation Bar. Some of the prominent features of this utility are explained below.

Simplicity

The user-friendly interface of our CSS Navigation Bar Tool provides you with the ease of conducting this conversion instantly. You no longer need to acquire programming skills for  CSS Navigation Bar due to the simplicity of this Tool.

No Registration

You don’t need to go through any registration process to use the CSS Navigation Bar. Using this utility, you can CSS Navigation Bar Tool as many times as you want for free.

Portability

This CSS Navigation Bar can be accessed from any corner of the world. You don’t need to worry about the compatibility of this online tool, as you can CSS Navigation Bar with it from any device. All you need is an internet connection for accessing and using this CSS Navigation Bar Tool.

Saves Time and Effort

The CSS Navigation Bar allows you to complete the same task immediately. You will not be asked to follow manual procedures, as its automated algorithms will do the work for you.

Compatibility

The CSS Navigation Bar Tool perfectly works on all operating systems. Whether you have a Mac, iOS, Android, Windows, or Linux device, you can easily use this online utility without facing any hassle.

100% Free

You don't need to go through any registration process to use this CSS Navigation Bar Tool. You can use this utility for free and do unlimited CSS Navigation Bar  without any limitations.

Advertising

CSS
°• CmtoInchesConvert.com •°