Jump to content

Recommended Posts

Posted

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!

Posted

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.

Posted
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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...