Jump to content

Float Image Over Navigation


waverider
 Share

Recommended Posts

I have a horizontal navigation and I want a sticker to be floating over top of it that shows a limited time offer graphic.When I use float it shifts the navigation over it does not over lap it like I want. I've been using css positioning with a relative property, but that will only work depending the screen resolution. Any help is appriciated.

Link to comment
Share on other sites

You will need to give the element you want to sit over the top a higher z-index than the menu, and you can make it sit over the top either by using position: relative and giving it negative margins or using position: absolute. Floating it makes it sit next to the previous element and probably isn't what you want to use here. Note that the menu items will not be clickable while the image is over the menu.Hm, that doesn't address the problem of the sticker moving when the window is resized...

Edited by chibineku
Link to comment
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
 Share

×
×
  • Create New...