moss2076
11-05-2009, 10:48 AM
Can anyone help me out with trying to create a horizontal navigation menu similar to the one at the very top of this page -http://support.apple.com/kb/HT1451 Im not bothered about the search box, just creating the menu items and css for the images.
I am using Joomla and it giving me some trouble working out how to code the CSS, inparticular how to make the background images to "stretch" when items are added to the menu.
For my attempt at this I have created two background images, one for the left-hand corner, and one long one to stretch across the menu from the left which can be seen here -
http://www.tomsspecialreserve.co.uk/menu_images.html
Joomla outputs this html -
<ul class="menu_toms_navmenu">
<li class="item143"><a href="/joomla/index.php?option=com_content&view=article&id=12&Itemid=143"><span>test1</span></a></li>
<li class="item144"><a href="/joomla/index.php?option=com_content&view=article&id=13&Itemid=144"><span>test2</span></a></li>
<li class="item145"><a href="/joomla/index.php?option=com_search&view=search&Itemid=145"><span>test3</span></a></li>
</ul>
I cannot work out the CSS to complete the effect. Do I need to use divs as background image wappers?
I am using Joomla and it giving me some trouble working out how to code the CSS, inparticular how to make the background images to "stretch" when items are added to the menu.
For my attempt at this I have created two background images, one for the left-hand corner, and one long one to stretch across the menu from the left which can be seen here -
http://www.tomsspecialreserve.co.uk/menu_images.html
Joomla outputs this html -
<ul class="menu_toms_navmenu">
<li class="item143"><a href="/joomla/index.php?option=com_content&view=article&id=12&Itemid=143"><span>test1</span></a></li>
<li class="item144"><a href="/joomla/index.php?option=com_content&view=article&id=13&Itemid=144"><span>test2</span></a></li>
<li class="item145"><a href="/joomla/index.php?option=com_search&view=search&Itemid=145"><span>test3</span></a></li>
</ul>
I cannot work out the CSS to complete the effect. Do I need to use divs as background image wappers?