CSS Library: Vertical CSS Menus: Here
Blue Blocks Menu
Author: Mark Newhouse- Taming Lists
This is an attractive "blocks" CSS menu with an accompanying hover effect. We added some changes of our own to the CSS to create a consistent menu width across browsers.
Demo:
The CSS:
Got a question or need help customizing this CSS code? Post it in the CSS Forums. If you have a comment or suggestion instead, post it in the comments section below.
Comment Pages 2 of 5 pages < 1 2 3 4 > Last »
hi Roy thanks for the code. where do i paste the codes you gave me
cool ;)
Change the colors in the Div below:
#blueblock li a:hover{
border-left: 10px solid #1c64d1;
border-right: 10px solid #5ba3e0;
background-color: #2586d7;
color: #fff;
}
#blueblock li a:hover{
border-left: 10px solid #1c64d1;
border-right: 10px solid #5ba3e0;
background-color: #2586d7;
color: #fff;
}
Dynamic Drive have done it again with another brilliant script. I didn't know that DD had set up this fabulous CSS code section and I thank you guys for it.
Rock on!
Dave...
Rock on!
Dave...
Thanks for code !
how can you make it so the css style sheet also has the links in it. so that when you change it it changes on all your pages?
thanks any help would..help
thanks any help would..help
Zane - Give each <li> it's own id and make a custom CSS rule for each one:
<style type="text/css">
li#one a:hover{background-color:#336699;
li#two a:hover{background-color:#FF3366;
</style>
...
<li id="one">...</li>
<li id="two">...</li>
It's really cool. Thanks a lot mate
I love this. I'm going to put it on the next layour for my website. Thanks so much!
Commenting is not available in this weblog entry.


<style type="text/css">
/*Credits: Dynamic Drive CSS Library */
/*URL: http://www.dynamicdrive.com/style/ */
#blueblock{
width: 180px;
border-right: 1px solid #000;
padding: 0 0 1em 0;
margin-bottom: 1em;
font-family: 'Trebuchet MS', 'Lucida Grande', Arial, sans-serif;
font-size: 90%;
background-color: #90bade;
color: #333;
}
* html #blueblock{ /*IE 6 only */
w\idth: 180px; /*Box model bug: 180px minus all left and right paddings for #blueblock */;
}
#blueblock ul{
list-style: none;
margin: 0;
padding: 0;
border: none;
}
#blueblock li {
border-bottom: 1px solid #90bade;
margin: 0;
}
* html #blueblock li {
b\order-bottom: none;
margin: -1;
}
#blueblock li a{
display: block;
padding: 5px 5px 5px 8px;
border-left: 10px solid #1958b7;
border-right: 10px solid #508fc4;
background-color: #2175bc;
color: #fff;
text-decoration: none;
width: 100%;
}
html>body #blueblock li a{ /*Non IE6 width*/
width: auto;
}
#blueblock li a:hover{
border-left: 10px solid #1c64d1;
border-right: 10px solid #5ba3e0;
background-color: #2586d7;
color: #fff;
}
</style>