Skip to Main Content or Page Contents

Navigation Bars HTML & CSS Tutorial

How to design HTML / CSS Navigation Bars.

Results per page:

Match: any search words all search words

Navigation Bars using or <ul> plus <li> tags

This Page's Contents

What is a Navigation Bar

Very Simple Navigation Bar using <p> tags

What is a Navigation Bar (Navbar)?

 

 

Very Simple Navigation Bar using <p> tags

zz

HTML

<nav class="border1 shadow1">
<p>
<a href="#">Link one</a> &nbsp;
<a href="#">Link two</a> &nbsp;
<a href="#">Link three</a>&nbsp;
<a href="#">Link four</a>
</p>
</nav>

Note: To increase the gap between the links, 2 spaces are applied using a standard space via the space bar on the keyboard plus a non breaking space   ;

CSS

/* Don't alter the order of a:link, a:visited a:visited and the combined a:hover, a:active, a:focus */
a:link,
a:visited,
a:hover,
a:active { font-size: .9rem; font-weight: normal; text-decoration: none; }

a:link {color: Sienna;}
a:visited {color: DarkGoldenRod ; }
a:hover,
a:active,
a:focus { color: Bisque; background: Sienna;}

nav {background: Bisque;}

.border1 {border:  2px solid sienna;}

.shadow1 {box-shadow: inset 1 1 10px Black; }

Standard <ul> <li> Nav Bar


© tutorials4u.com
HTML Tutorial by John McGuinn.