Using arrow image to indicate current menu selection : Menu « CSS Controls « HTML / CSS






Using arrow image to indicate current menu selection

  
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>AUTUMN</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<style type='text/css'>
body {
  margin: 0;
  padding: 0;
  font: 75% "Trebuchet MS", tahoma, verdana, arial, sans-serif;
  background: #fff url(01-autumn-img/bg.jpg) center 0%;
  color: #666;
}

#container {
  width: 600px;
  margin-right: auto;
  margin-left: auto;
}

/*TITLE BAR*/
#title h1 {
  margin: 0;
  padding: 10px;
  font-size: 1.5em;
  color: #8c9e18;
  background: inherit;
}

/*TOP BANNER*/
#banner {
  width: 600px;
  height: 150px;
  margin-bottom: 10px;
  padding: 0;
  background: url(01-autumn-img/head.jpg);
}

/*CONTAINER*/
.container {
  width: 600px;
  margin: 0;
  padding: 0;
}

/*TOP NAVIGATION*/
#top-nav {
  margin: 0;
  padding: 0 0 20px 0;
  text-transform: uppercase;
  font-weight: bold;
  border-bottom: 1px solid #eee;
}

#top-nav li {
  height: 20px;
  margin: 0;
  padding: 0;
  display: inline;
  list-style-type: none;
}

#top-nav a:link,#top-nav a:visited {
  float: left;
  padding: 0 15px 15px 15px;
  text-decoration: none;
  letter-spacing: 1px;
  color: #666;
  background: inherit;
}

#top-nav a:link.active,#top-nav a:visited.active,#top-nav a:hover {
  background: inherit;
  color: #487500;
  background: url(01-autumn-img/top_menu.gif) no-repeat bottom center;
}

/*MAIN CONTENT*/
#content {
  float: left;
  width: 420px;
  margin: 0;
  padding: 0;
  line-height: 1.8em;
  border-right: 1px solid #eee;
}

#content p {
  margin: 10px;
}

/*TYPOGRAPHY*/
h1 {
  margin-top: 15px;
  padding: 0;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 1.5em;
  color: #8c9e18;
  background: inherit;
}

blockquote {
  font-weight: bold;
  font-style: italic;
  color: #b29b35;
}

/*SIDEBAR*/
#side {
  width: 160px;
  margin: 0 0 0 435px;
  padding: 0;
}

#side h2 {
  font-size: 1em;
  color: #9c592c;
  background: inherit;
}

/*SIDE NAVIGATION*/
#side-nav {
  margin: 0;
  padding: 0;
  list-style-type: none;
  color: #333;
  background: inherit;
}

#side-nav a {
  line-height: 2em;
  background: inherit;
  display: block;
  text-decoration: none;
  background: url(01-autumn-img/side_menu.gif) no-repeat right 0%;
  color: #c86000;
}

#side-nav a#current,#side-nav a:hover {
  text-decoration: none;
  background: #fff url(01-autumn-img/top_menu.gif) no-repeat right 0%;
  color: #000;
}

/*FOOTER*/
#footer {
  clear: both;
  width: 600px;
  padding: 0;
  margin: 0;
  border-top: 1px solid #eee;
  font-size: 0.9em;
  color: #333;
  background: inherit;
}

#footer a:link,#footer a:visited {
  color: #c86000;
  background: inherit;
}

#footer a:hover {
  border-bottom: 1px dashed #eee;
  color: #8c9e18;
  background: inherit;
}

/*CLASSES*/
.more-links {
  padding: 10px;
  margin-left: 0;
  color: #666;
  background: #f7f7f7;
}

.more-links ul li {
  list-style-image: url(01-autumn-img/arrow.png);
  padding-left: 5px;
  margin-bottom: 10px;
}

.news {
  color: #666;
  background: inherit;
}

.myborder {
  border: 1px solid #eeae0e;
  padding: 10px;
}

/*SCROLLBAR*/
div.scroll {
  overflow: auto;
  margin: 0 0 20px 0;
  padding: 1em;
  height: 8em;
  border: 1px solid #eee;
  background: #fff;
  color: #866709;
}

/*LINKS*/
a img {
  border: none;
}

a:link,a:visited {
  text-decoration: none;
  color: #cc6600;
  background: inherit;
}

a:hover {
  text-decoration: none;
  color: #663300;
  background: inherit;
}
</style>


</head>
<body>
<div id="container">
  <div id="title">
    <h1>Your <span style="color:#C4DA64;">Company</span> Name</h1>
  </div>
  <div id="banner"></div>
  <div class="container">
    <ul id="top-nav">
      <li><a class="active" href="http://www.free-css.com/">Home</a></li>
      <li><a href="http://www.free-css.com/">About</a></li>
      <li><a href="http://www.free-css.com/">Products</a></li>
      <li><a href="http://www.free-css.com/">Services</a></li>
      <li><a href="http://www.free-css.com/">Support</a></li>
    </ul>
  </div>
  <div id="content">
    <h1>Welcome to <span style="font-weight:bold; color:#C4DA64;">Autumn</span> Template</h1>
    <blockquote>This template has been tested in Mozilla and IE6/7 and validates as XHTML 1.0 Transitional using valid CSS.<br />
      For more FREE templates visit my website.</blockquote>
    <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Curabitur mi. Sed interdum. Nam facilisis dui a nisi. Phasellus euismod augue quis erat. This is a <a href="http://www.free-css.com/">LINK</a> to nowhere. Nunc libero libero, lobortis ut, placerat vel, dapibus eu, nisl. Fusce a nisi sed urna aliquet molestie. Aenean pretium, orci vitae lobortis rutrum, magna arcu pulvinar elit, id suscipit nunc tellus in felis. </p>
    <div style="float: right; width: 125px; height: 7em; margin: 15px; font-family: georgia, arial, helvetica; font-size: 16px; font-weight:normal; line-height: 22px; color: #cc9933; text-align: right;"><span style="color:#663300;">"...autumn is a second </span>spring when every <span style="color: #C86000;">leaf is a flower... "</span> </div>
    <p>Sed interdum. Nam facilisis dui a nisi. Phasellus euismod augue quis erat. Nunc libero libero, lobortis ut, placerat vel, dapibus eu, nisl. Fusce a nisi sed urna aliquet molestie. Aenean pretium, orci vitae lobortis rutrum, magna arcu pulvinar elit, id suscipit nunc tellus in felis.Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Curabitur mi. Sed interdum. Nam facilisis dui a nisi. Phasellus euismod augue quis erat.</p>
    <h1>About</h1>
    <p><img class="myborder" align="left" hspace="10" src="01-autumn-img/square.gif" alt="image here" title="image here" /> Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Curabitur mi. Sed interdum. Nam facilisis dui a nisi. Phasellus euismod augue quis erat. Nunc libero libero, lobortis ut, placerat vel, dapibus eu, nisl. Fusce a nisi sed urna aliquet molestie. Aenean pretium, orci vitae lobortis rutrum, magna arcu pulvinar elit, id suscipit nunc tellus in felis. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Curabitur mi. Sed interdum. Nam facilisis dui a nisi. Phasellus euismod augue quis erat. Nunc libero libero, lobortis ut, placerat vel, dapibus eu, nisl. Fusce a nisi sed urna aliquet molestie. Aenean pretium, orci vitae lobortis rutrum, magna arcu pulvinar elit, id suscipit nunc tellus in felis.</p>
  </div>
  <div id="side">
    <h1>Links</h1>
    <div id="navcontainer">
      <ul id="side-nav">
        <li><a href="http://www.free-css.com/">Open Designs</a></li>
        <li><a href="http://www.free-css.com/">CSS Drive</a></li>
        <li><a href="http://www.free-css.com/">Style Gala</a></li>
        <li><a href="http://www.free-css.com/">Listamatic</a></li>
      </ul>
      <h1>News</h1>
      <div class="scroll">
        <h2>January 1st 2006</h2>
        <p class="news">HAPPY NEW YEAR. Use this space as a mini weblog maybe .....</p>
        <h2>Sept 25th 2005</h2>
        <p class="news">or maybe not!</p>
      </div>
    </div>
    <h1>More Links</h1>
    <div class="more-links">
      <ul>
        <li><a href="http://www.free-css.com/">OWD</a></li>
        <li><a href="http://www.free-css.com/">CSS Drive</a></li>
        <li><a href="http://www.free-css.com/">CSS Library</a></li>
      </ul>
    </div>
  </div>
  <div id="footer"> <a href="http://www.free-css.com/">homepage</a> | <a href="http://www.free-css.com/">contact</a> | <a href="http://validator.w3.org/check?uri=referer">html</a> | <a href="http://jigsaw.w3.org/css-validator">css</a> | &copy; 2007 Anyone | Design by <a href="http://www.mitchinson.net"> www.mitchinson.net</a><br/>
    This work is licensed under a <a rel="license" target="_blank" href="http://creativecommons.org/licenses/by/3.0/">Creative Commons Attribution 3.0 License</a> </div>
</div>
</body>
</html>

   
    
  








Related examples in the same category

1.Use show or hide UL with link
2.Horizontal menu
3.CSS only menu with mouse over
4.Left bar menu
5.Menu bar with highlight
6.Menu with highlight
7.fixed width floated menu
8.Mouse hover left bar
9.Left navigation bar
10.Use UL and LI to wrap link menu
11.Tab Menu
12.Left bar menu list
13.Top tab menu bar
14.Navigation menu on the top
15.Wide and tall menu
16.Shading menu bar
17.Top menu bar with arrow icon
18.3D top bar background
19.Left menu bar aligned to the bottom
20.Indented vertical menu
21.Single column layout with top menu bar
22.Two-level left menu bar
23.Right section bar with shading menu
24.Right menu bar with image background
25.Right menu bar with section
26.Top menu bar
27.Using top arrow to indicate top menu selection
28.Wide and tall top menu bar
29.List menu bar with background image
30.Two level menu bar
31.Top menu with arrow indication
32.Two column, two leve top menu bar
33.List menu with image
34.Menu List item
35.List menu bar
36.Top menu list bar with bold bottom
37.Side menu bar
38.Scrollable section in side menu bar
39.Selected menu item indication
40.Card layout with top menu bar
41.Side menu bar with lot of space in between
42.HTML skeleton code for creating a two-level horizontal drop menu
43.using jQuery to toggle a hidden menu
44.Vertical menu
45.Horizontal menu bar
46.Vertical menu bar
47.sliding door menu
48.horizontal list menu
49.Sub navigation menu
50.Pure css menu
51.Two column layout with menu on the left
52.Navigation menu horizontal
53.Pure CSS drop-down menu
54.Menu item with border
55.Vertical menu on the left
56.LI menu
57.Mouse hover effect for left menu
58.Post item layout with menu
59.Left menu bar with mouse hover effect
60.a:hover background: transparent url(img/menu_arrow.gif) bottom center no-repeat;
61.Menu item with border 2
62.Link menu
63.Left menu bar with thicker border
64.Change border and background with mouse hover for left menu bar
65.Nested left menu bar
66.Vertical menu bar 2
67.Fixed left menu bar
68.Dark background for menu bar
69.Link menu item with side bar
70.Tag like top menu bar
71.Two line top menu bar
72.Menu item separated with border
73.Two level top menu bar
74.Tab menu bar with mouse hover effect
75.Menu bar with background image
76.Two level side menu bar
77.Left bar with news item
78.Continue read link