joomlavideos Posted November 5, 2009 Report Share Posted November 5, 2009 I would like to create a menu like the Joomla default menu in rhuk_milkyway. The way this menu is set up, the two "endcaps" of the menu move out as the width of the menu content increases. This is done with the tables that Joomla generates through the menu manager. I understand that concept and how the table can grow. My question is: can this be done with CSS and DIVs instead? I always thought you had to specify a width in a div otherwise it would expand the entire width of it's containing div. I know I can create nested divs that hold the "endcaps" and ultimately the menu contents, but again, the div would expand without a width declaration. Thanks! Quote Link to comment Share on other sites More sharing options...
Wickham Posted November 5, 2009 Report Share Posted November 5, 2009 This is the sliding doors method where you have one small image for the left end http://www.cssplay.co.uk/menus/left_both.gif and another for the middle with a right end http://www.cssplay.co.uk/menus/right_both.gif which slide over each other to whatever width you want. The images are large in the links above but reduced in size in the finished menu http://www.cssplay.co.uk/menus/sliding_doors.html CSSplay has hundreds of CSS menus, the sliding doors ones use the above principle. Quote Link to comment Share on other sites More sharing options...
falkencreative Posted November 5, 2009 Report Share Posted November 5, 2009 FYI, the two image links above don't seem to work... I get "403 Forbidden" errors. This link explains the technique above in greater detail: http://www.alistapart.com/articles/slidingdoors2/ Quote Link to comment Share on other sites More sharing options...
Wickham Posted November 5, 2009 Report Share Posted November 5, 2009 FYI, the two image links above don't seem to work... I get "permission denied" errors. This link explains the technique above in greater detail: http://www.alistapart.com/articles/slidingdoors2/ That's strange, they work for me in Firefox if I right-click Open in new tab. If they don't work, you can look at the cssplay example and use Firefox Tools, Page Info, Media to see them. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.