Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Page elements overlapping Feedback Box

Featured Replies

Hey,

 

I just added the getsatisfaction.com Feedback widget, however it's not loading properly on a few pages such as on the homepage: www.carbuzz.co.uk - the logo and search bar are overlaying the lightbox!

 

Anyone know how this can be fixed?

 

Thx =) x

interestingly when I first load the homepage in IE9 it works fine but when I look at the Developer tools the page is defaulting to IE7 standards - I guess your coding is doing this and may be the root of other issues? When I change this to IE9 standards the lightbox is under both the search and logo. Similar in Firecrap and Chrome. Safari for Windows shows it behind but only half the box.

I agree. Btw very nice design, i love it !

your <div> logo has a very high z-index. as does <div> search box

 

z-index: 99999999999999999999999999999999; !!!!

 

as this is higher than the one set for the lightbox thing they will sit on top.

  • Author

thanks everyone! =) so what do i need to set the z-index to?

Try 2. Read on if that doesn't work.

 

Try this experiment. Create a div with a strong background color. Within, place two other overlapping divs with strong and very different background colors. No zIndexes. ("z-index" in CSS). They will paint in markup order: first div paints first. The last div painted appears "on top" of the others. Now assign a zIndex of 1 to the second (the one behind) and reload. The order switches. Assign a zIndex of 2 to the one behind. Another switch. Now assign a zIndex of 9 to the containing div. No switch. zIndexes order children of the parent, not the parent.

 

Doesn't work? Position (relative or absolute) the containing divs and try again.

 

Still doesn't work? Keep reading.

 

The zIndex (CSS: z-index) is used to sort stacking order for some siblings. Each positioned (relative, absolute, fixed) block-level element with a zIndex creates a "stacking context". It's unpositioned children are painted first. Its positioned children are painted in zIndex order, negative numbers, no zIndex, then positives, lowest to highest. (Painting highest last means they appear on top of the others.)

 

You need to give an element a zIndex higher than its siblings' zIndices if you want it on top. The default zIndex is zero, so try 1, 2 and 3. Those should be all you ever need. The zIndex of the parent (stacking context, often the div that contains the items to stack) is irrelevant to the children. The parent's zIndex is used to paint the parent in order among the parent's siblings. Once painting has started for a parent, the parent and all its children (to any generation) are painted before moving on to the next "stacking context."

 

Insatiable appetite for full facts? w3c CSS 2.1, search for "stacking context." Good luck!

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.