> -----Original Message----- > From: MEM [mailto:[EMAIL PROTECTED] > Sent: segunda-feira, 8 de Dezembro de 2008 19:27 > To: 'css-d@lists.css-discuss.org' > Subject: [css-d] Vertical Nav Bar - the background don't follow. > > Hi all again, > > I have a vertical menu that as a lot of space between the li elements. > This is nice, however, > the background color on hover doesn't come along, the background color > on hover just stays around the text. Why? What am I doing wrong? > > #menuvertical { > border-bottom: 1px solid gray; > width: 250px; > } > > #menuvertical a{ > display:block; /*This shows me the background along the width of > #menuvertical, if I quit this, the hover background only stays around > the text*/ > } > > #menuvertical li { > border-top: 1px solid #959595; > padding:15px; /*This gets me the space I need between the li tags BUT > the background on over just stays around the text!! :(*/ > } > > #menuvertical a:hover { > text-decoration:none; /*I need this because I already have changed the > a tag*/ > background:#D0D9DD; > color:#006; > font-weight:bold; > } > > > > Thanks once again, > Márcio
Found it. :S Just needed to remove the padding from #menuvertical li and add the padding to #menuvertical a . Yupi! I believe this is my first solving of CSS. :D:D:D Regards, Márcio ______________________________________________________________________ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/