I'm close but having trouble with making it look nice. The problems are:
1) I want the text and picture to be aligned at the top of the button, not the bottom like it is now.
2) If the text is too long for one line, I'd like it to wrap around but stay to the right of the picture.
3) When you hover over each buttom, there is more padding below the button than above it.
Here's the code I have so far:
Thanks!Code:<html> <head> <style type="text/css"> ul#cssnav { list-style-type:none; } #cssnav li a { display:block; width: 150px; text-decoration:none; padding:5px; } #cssnav li a:hover { background:#1f1f1f; color:#fffff8; } </style> </head> <body> <ul id="cssnav"> <li><a href="#"><img src="pic.jpg" width="40" border="1" />Home</a></li> <li><a href="#"><img src="pic.jpg" width="40" border="1" />Sometimes there will be 2 lines</a></li> <li><a href="#"><img src="pic.jpg" width="40" border="1" />Contact</a></li> <li><a href="#"><img src="pic.jpg" width="40" border="1" />Links</a></li> <li><a href="#"><img src="pic.jpg" width="40" border="1" />Email</a></li> <li><a href="#"><img src="pic.jpg" width="40" border="1" />Login</a></li> </ul> </body> </html>






Bookmarks