Jump to content

Float Image Over Navigation


waverider

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

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...