CSS Horizontal Menu : Text Align Bottom -


well not css menus.... need to make this unable align text bottom of listli

so tried tables.. thinking display block gonna solve problems turned out didn't... see in jsfiddle example posted, when mouse on top areas of cell link doesnot work true because there no link there... can please tell me how convert css menu

i suggest making menu unordered list instead of tables. this:

html:

<ul id="my_menu"> <li><a href="linktopage" title="titleofpage">name of page 1</a></li> <li><a href="linktopage" title="titleofpage">name of page 2</a></li> <li><a href="linktopage" title="titleofpage">name of page 3</a></li> <li><a href="linktopage" title="titleofpage">name of page 4</a></li> </ul> 

css:

ul#my_menu, ul#my_menu li {list-style: none;}  ul#my_menu li {display: block; float: left; width: 100px; height: 100px;} ul#my_menu li {display: block; text-decoration: none; color: #ccc; background: url('url_of_gradient') repeat-x; padding: 70px 10px 10px 10px; width: 80px; height: 20px;} ul#my_menu li a:hover {background: url('url_of_hover_gradient') repeat-x;} 

try this, setting gradient image (you'll have make this) background on links. create image hover state. you'll have tweak heights , widths liking.

this shouldn't require javascript.


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -