I have a 100% css/html nav menu for the months here: http://billboardfamily.com/calendar/
It is working great, but there are a few things I am trying to do and I don;t know how to do them, exactly. Here is what I need help with:
1) I want the containers (<li>) to be wider, but this is not happening for me. I would prefer not to specify an exact height so this can be more compatable with all browsers/settings, but if that's the only way, then so be it.
2) When you hover over a month is there a way to get the text to stay right where it is, and have it look like just the box is growing like it does?
3) I am trying to give certain <li> tags the class="blocked-month" so I can change the way they look, and make them not clickable, etc. For some reason, my changes are not taking effect on these tags.
Here is the code as of now:
And the CSS:Code:<div class="calendar-nav"> <ul id="calendar-nav-button"> <li class="blocked-month"><a href=”#” title="January, 2010"> JAN </a></li> <li><a href=”#” title="February, 2010">FEB</a></li> <li><a href=”#” title="March, 2010">MAR</a></li> <li><a href=”#” title="April, 2010">APR</a></li> <li><a href=”#” title="May, 2010">MAY</a></li> <li><a href=”#” title="June, 2010">JUN</a></li> <li><a href=”#” title="July, 2010">JUL</a></li> <li><a href=”#” title="August, 2010">AUG</a></li> <li><a href=”#” title="September, 2010">SEP</a></li> <li><a href=”#” title="October, 2010">OCT</a></li> <li><a href=”#” title="November, 2010">NOV</a></li> <li><a href=”#” title="December, 2010">DEC</a></li> </ul> </div>
Code:#calendar .calendar-nav { float: left; clear: both; margin-top: 30px; padding-left: 10px; } #calendar-nav-button { padding: 0; } #calendar-nav-button li { display: inline; } #calendar-nav-button li a { font-size: 1.3em; font-weight: bold; text-decoration: none; float: left; padding: 10px; background-color: #999999; color: #000000; border: #ffffff 1px solid; } #calendar-nav-button li a:hover { background-color: #00afef; margin-top:-10px; padding-bottom:20px; border: #ffffff 1px solid; } #calendar-nav-button .blocked-month li { background-color: #000000; color: #ffffff; }
That's all. Thanks for the help in advance.







. Well in CHrome they also grow. What browser are you using that it isn't growing on? Chrome/FF good.

Bookmarks