WeLoveCSS Logo
Home Profile Members Search Rules Help New Posts



WeLoveCSS > WEB DESIGN > CSS > Can't get overlay on top of div [z-index]

Reply
  Thread Tools Display Modes
Old 12th June 12, 04:00 PM   #1
LucasVon
WLC Member
 
Join Date: Jun 2012
Posts: 3
Default Can't get overlay on top of div [z-index]

Hello!
I'm the web designer for a system we use here in college, but I'm having a problem which I simply couldn't solve:


As you can see, there is a black overlay (with a white box which is the overlay content), but the breadcrumb is on top of the overlay. Here is the CSS:

Breadcrumb:

Code:
.navbar { 
    background: #1876a7;
    height: 20px;
    margin-bottom:-13px;
    padding-top: 5px;
    padding-bottom: 3px;
    padding-left: 7px;
    position:relative;
    z-index: 9!important;
    top: 33px;
    color: #fff;
}
Black Overlay:

Code:
element.style {
background-color: black !important;
width: 100% !important;
height: 100% !important;
position: fixed;
left: 0px;
top: 0px;
opacity: 0.7;
z-index: 10 !important;
display: block;
}
The page itself is behind a restricted area, but the breadcrumb bar in question can be seen here: http://www4.univali.br/sophia2

Thank you in advance!
LucasVon is offline   Reply With Quote
Old 12th June 12, 04:40 PM   #2
chrishirst
Banned
 
Join Date: Jun 2006
Location: Blackp ool U.K.
Posts: 3,197
Default Re: Can't get overlay on top of div [z-index]

Looking at somebody else's HTML is of no use for solving the problem with yours.

Quote:
but the breadcrumb is on top of the overlay
And where should it be?
chrishirst is offline   Reply With Quote
Old 12th June 12, 04:55 PM   #3
LucasVon
WLC Member
 
Join Date: Jun 2012
Posts: 3
Default Re: Can't get overlay on top of div [z-index]

Quote:
Originally Posted by chrishirst View Post
Looking at somebody else's HTML is of no use for solving the problem with yours.

And where should it be?
Well, since the overlay is the black bit which should cover everything in the page to show the overlay content better, then the breadcrumb should be behind it, being "dimmed" as everything else in the page.
LucasVon is offline   Reply With Quote
Old 12th June 12, 09:01 PM   #4
chrishirst
Banned
 
Join Date: Jun 2006
Location: Blackp ool U.K.
Posts: 3,197
Default Re: Can't get overlay on top of div [z-index]

Need to see the document URL.

Pictures can't be debugged and CSS is useless without the HTML.
chrishirst is offline   Reply With Quote
Old 13th June 12, 06:29 PM   #5
LucasVon
WLC Member
 
Join Date: Jun 2012
Posts: 3
Default Re: Can't get overlay on top of div [z-index]

http://www4.univali.br/sophia2
This is the furthest I can take you, beyond this is restricted area.
LucasVon is offline   Reply With Quote
Old 14th June 12, 06:27 PM   #6
chrishirst
Banned
 
Join Date: Jun 2006
Location: Blackp ool U.K.
Posts: 3,197
Default Re: Can't get overlay on top of div [z-index]

Then you are pretty much on your own. Without being able to SEE the problem or get to the code & the images together, there isn't a lot anybody can do.
Guessing what at it might be is not going to be any use at all.
chrishirst is offline   Reply With Quote
Reply


Thread Tools
Display Modes
Linear Mode Linear Mode

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:52 AM.



Home | Advertise | Contact Us | Top
Home | Advertise | Contact Us | Top

Copyright© 2006 WeLoveCSS.com. All Rights Reserved.
Powered by vBulletin Version 3.8.4 Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.