I have mouse over images for the purpose of using 2 image files on multiple buttons but using html text for the button text.
I have an issue though where the text is falling to the absolute bottom of the image and I am not able to middle align it or center it. This is my css code...
Can anyone help me here? I can imagine the fix is simple I am just not noticing it.Code:body { background-image: url(images/bg.jpg); background-repeat: repeat-x; } #sidebar { vertical-align: none; width: 268px; } #sidebar .lpc{ height: 100px; vertical-align: middle; } #sidebar ul { margin: 0; padding: 0; padding-top: 0px; } #sidebar li { list-style: none; } #sidebar li a { display: block; font-size: 14px; color: #556b76; padding: 7px 7px 0px 30px; background-image: url(images/btn.jpg); } #sidebar li a:hover { display: block; background-image: url(images/btno.jpg); } #sidebar li a.selected, a.selected:hover { display: block; color: #820032; background-image: url(images/btn.jpg); } a:link { text-decoration: none; } a:visited { text-decoration: none; } a:hover { text-decoration: none; } a:active { text-decoration: none; } a { font-family: Arial, Helvetica, sans-serif; font-size: 12px; }
-- Nate



Reply With Quote




Bookmarks