Advanced Search Usage Terms Submit Contact
Dynamic Drive CSS Library
 
CSS Library
Submit an original CSS code
CSS Layouts
Online Tools:

Advertise Here

CSS Library: Horizontal CSS Menus: Here

Modern Bricks Menu

Author: Dynamic Drive

This is a modern looking, imageless horizontal menu. The selected menu item merges with the band below it to help it stand out even more. As mentioned, the menu uses no images, making customization a breeze.

Demo:

 

The CSS:

The HTML:

Code Info

Rate this code:

Date Posted: 05/24/2007

Revision History: None

Usage Terms: Click here

Your Comments (63)

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 6 of 7 pages « First  <  4 5 6 7 >

Hi

there have been a number of questions about making the CURRENT menu current. I have used a simple bit of javascript to do this and it works fine:

On each button add the following code within the <a > onclick="makeCurrent(this)"

In the header section of your page put the javascript function:-
<script language="Javascript">
function makeCurrent(vMenu) {

var thisLI=vMenu.parentNode
var thisUL=thisLI.parentNode
var thisChild=thisUL.firstChild;

vMenu.parentNode.id = "current"
while ( thisChild != thisUL.lastChild )
{
if ( thisChild.tagName=="LI" )
{
thisChild.id=""
}
thisChild = thisChild.nextSibling;
}
thisLI.id = "current"
}

</script>

This should work:-
Posted by chris on 01/12, 08:55 AM

#modernbricksmenu{
padding: 0;
width: 100%;
background: transparent;
voice-family: "\"}\"";
voice-family: inherit;
}


why is "voice-family" used here - and why is it used twice - and what does "inherit" mean here?
Posted by mostwanted on 01/17, 01:42 AM
how can we had horizontal submenu's to this???????
Posted by jmurph on 02/09, 09:51 PM
nice menu. my question is very easy.
how do I make this codes work?
I saved the first code as modernbrick.css and the second code as modernbrick.html when i open the html file the design doesnt show. How can I fix that? thank you
Posted by fogsy on 02/25, 11:06 PM
page Bookmarked! Thanks!

Shannon
- Pinoy Money Talk
Posted by Shannon on 02/26, 10:37 PM
nice - good looking
Posted by Projektowanie www on 03/20, 03:47 AM
This is a great CSS menu, and I appreciate the simplicity of it. :) Question: How do you elongate the menu boxes so they are of the same size, even if the page menu "names" are not? Please be kind as I'm still learning! Thanks!
Posted by Hailee on 04/03, 03:52 PM
bookmarked also this blog ;)

Berita Harian
Posted by Berita Harian on 05/07, 07:45 AM
a very nice point here..thanks
Posted by Clickbank.com on 05/08, 08:20 AM
nice one here

Clickbank.com
Posted by Clickbank.com on 05/08, 08:22 AM

Comment Pages 6 of 7 pages « First  <  4 5 6 7 >

Name: (Required)

Email: (Required)

(NOT shown on page)

URL:

(Shown on page if entered)

Comments: (Required)

Supported BB codes: [b], [i], [u], [em], [strike], [strong], [pre], [code], and [blockquote].

Remember my personal information
Notify me of follow-up comments?

Submit the word you see below ("previewing" post does not require it):


Copyright 2006 Dynamic Drive Read our Usage Terms before using any of the CSS codes.
Dynamic Drive DHTML and CSS Code Library