CluelessNewbie
02-26-2005, 07:31 PM
Hello, complete newbie here. Don't run away scared yet, please help :)
I want a horizontal menu. I've got 7 images to use as button backgrounds, each 100x50. I've got an unordered list, with seven list items, to use as the menu links. How in the blazes do I get the text to display at the center of each button?!
So far I managed to get the text on top of the images, and to display the list as horizontal. I want the menu pinned in the lower right corner, but somehow the text seems to be misaligned by about 250px on the right? :/
Could someone please tell me how to fix this? (I'm currently experimenting, so don't expect the links or names in the code to make much sense).
Thanks in advance.
[ HTML ]
<div class="menuimg">
<img src="button.gif">
<img src="button.gif">
<img src="button.gif">
<img src="button.gif">
<img src="button.gif">
<img src="button.gif">
<img src="button.gif">
<img src="button.gif">
</div>
<span id="menutext">
<ul>
<li><a href="stuff.html">Stuff</a></li>
<li>More stuff</li>
<li>Things</li>
<li>Gizmos</li>
<li>Freebies</li>
<li>Friends</li>
<li>Links</li>
<li>Email</li>
</ul>
</span>
[ CSS ]
.menuimg {width: 700px; height: 50px; position: absolute; bottom: 0px; right: 0px; }
#menutext {z-index: 1; width: 700px; height: 50px; position: absolute; bottom: 0px; right: 0px; color: purple; font-family: Arial, Helvetica, sans-serif; }
#menutext li {width: 100px; height: 50px; padding: 0; display: inline; text-align: center; }
I want a horizontal menu. I've got 7 images to use as button backgrounds, each 100x50. I've got an unordered list, with seven list items, to use as the menu links. How in the blazes do I get the text to display at the center of each button?!
So far I managed to get the text on top of the images, and to display the list as horizontal. I want the menu pinned in the lower right corner, but somehow the text seems to be misaligned by about 250px on the right? :/
Could someone please tell me how to fix this? (I'm currently experimenting, so don't expect the links or names in the code to make much sense).
Thanks in advance.
[ HTML ]
<div class="menuimg">
<img src="button.gif">
<img src="button.gif">
<img src="button.gif">
<img src="button.gif">
<img src="button.gif">
<img src="button.gif">
<img src="button.gif">
<img src="button.gif">
</div>
<span id="menutext">
<ul>
<li><a href="stuff.html">Stuff</a></li>
<li>More stuff</li>
<li>Things</li>
<li>Gizmos</li>
<li>Freebies</li>
<li>Friends</li>
<li>Links</li>
<li>Email</li>
</ul>
</span>
[ CSS ]
.menuimg {width: 700px; height: 50px; position: absolute; bottom: 0px; right: 0px; }
#menutext {z-index: 1; width: 700px; height: 50px; position: absolute; bottom: 0px; right: 0px; color: purple; font-family: Arial, Helvetica, sans-serif; }
#menutext li {width: 100px; height: 50px; padding: 0; display: inline; text-align: center; }