Copyright © 2005-2008 Andrea Tincani

AndreaPHP | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (Help for centering a Menu List...)Next Topic (Problemm with CSS) New Topic New Poll Post Reply
AndreaPHP Forum : Design, Style, CSS and Graphics : Help needed with a menu bar.
Poster Message
neutrall
Level: Scholar


Registered: 28-03-2004
Posts: 43

icon Help needed with a menu bar.

I'm having some problem with a menu when the windows is too small and the button fall into a second line. See this address for a example : http://membres.lycos.fr/landsoftimes/template-human.html

When the windows is too small, the button overlaps. Here the CSS code I'm using :

/* *******************************
Menu Box
**********************************/
.menu {
position:relative;
height:25px;
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
text-align: center;
font-weight:bold;
}
/* *******************************
Place the main menu list in order
**********************************/
.menu li {
display: inline;
}
/* *******************************
Place the proper margin and border
**********************************/
.menu ul {
list-style: none;
margin: 0,0,2px,0;
padding: 0;
padding-top: 4px;
}
/* *******************************
Color for the link in the menu only
**********************************/
.menu a:link, .menu a:visited, .menu a:active {
margin-right: 2px;
padding: 3px 10px 2px 10px;
color:BLACK;
background-color: SILVER;
background-position: center;
background-image: url(../images/button_back.gif);
text-decoration: none;
border-top: 1px solid #FFFFFF;
border-left: 1px solid #FFFFFF;
border-bottom: 1px solid #717171;
border-right: 1px solid #717171;
}
/* *******************************
Color for the link selected or hover on top of.
**********************************/
.menu a:hover {
border-top: 1px solid #717171;
border-left: 1px solid #717171;
border-bottom: 1px solid #FFFFFF;
border-right: 1px solid #FFFFFF;
}


Does anyone has a clue ? (I didn't inclue the HTML part since you can view the source at the given address)


____________________________
A Stick give a wise man something to think about... and a fool, something to put in is mouth.

10-05-2005 at 10:23 PM
View Profile Send Email to User Show All Posts Visit Homepage ICQ | Quote Reply
~Bean~
Level: Big Cheese


Registered: 07-04-2003
Posts: 22

icon Re: Help needed with a menu bar.

hhhmmm...not sure...I'm not so great with CSS ...check out this code here which if you scroll down has a nice horizontal CSS menu that folds when you reduce window size...

CSS Menu

[Edited by ~Bean~ on 11-05-2005 at 12:56 PM GMT]

____________________________
Eggheads unite! You have nothing to lose but your yolks.

11-05-2005 at 05:55 PM
View Profile Send Email to User Show All Posts Visit Homepage | Quote Reply
AndreaPHP Forum : Design, Style, CSS and Graphics : Help needed with a menu bar.
Previous Topic (Help for centering a Menu List...)Next Topic (Problemm with CSS) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: AndreaVB

Copyright © 2005-2008 Andrea Tincani

Powered by: tForum tForum Edition b0.92p1
Originally created by Toan Huynh (Copyright © 2000)
Enhanced by the tForumHacks team.