Jump to content
Sign in to follow this  
tony2k

Dropdown menu overlap

Recommended Posts

Now one problemn has been solved i move onto the next lol.

 

If you take a look at cheaptrade.co.uk down the left hand side of the page you will see a 'Categories (click to expand)' dropdown menu with an advertisement box below it. Currently if you click the dropdown menu, as it expands it pushes the advertisement box down and makes the browser windo longer.

 

Does anybody know how i would make the dropdown menu simply overlap or expand over the advertisement box rather than pushing it down? Id like to do this without using the z-index command if possible as i dont like using positioning for my div's.

 

Many thanks.

Share this post


Link to post
Share on other sites

The only way to make an element not affect other elements is taking it out of the flow. And the only way to do that is by positioning them absolutely. (position fixed also takes it out fo the flow, but then it's relative to the viewport.)

Share this post


Link to post
Share on other sites
The only way to make an element not affect other elements is taking it out of the flow. And the only way to do that is by positioning them absolutely. (position fixed also takes it out fo the flow, but then it's relative to the viewport.)

 

Iv found something similar to what i need on britster.com, if you look at the menu at the top id like one like that but i cant find out what type of menu it is.

 

Thanks

Share this post


Link to post
Share on other sites

That site is not a good example. It uses masses of Javascript and invalid markup. A List Apart got a few articles on drop down menus. Have a look at the various articles and method there. http://search.atomz.com/search/?sp-q=drop+...ll&sp-k=All

Share this post


Link to post
Share on other sites

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

Sign in to follow this  

  • Recently Browsing

    No registered users viewing this page.

  • Member Statistics

    • Total Members
      57,724
    • Most Online
      4,970

    Newest Member
    lomawheels81
    Joined
  • Forum Statistics

    • Total Topics
      65,787
    • Total Posts
      454,658
×