position relative overlapping position fixed

Mathlight

I have an position overlap problem.

I've got an menu with the following css:

position: relative;
z-index: 1;
top: 1em;
left: 120px;
margin-top: 0;
display: inline-table;
font-size: 0.875em;

And an overlay ( with some options ) with this css:

width: 100%;
min-height: 100%;
position: fixed;
top: 0;
left: 0;
z-index: 1000;
background: url('../img/overlay.png') repeat 0 0;
text-align: center;

As you can see is the z-index is set way higher then the menu. But the menu is still visible ( not grayed out ).

Here's and saved HTM version of the site because i couldn't replicate in JSFiddle

So my question is very simple: How can I fix this? ( that the menu is "grayed out, by the background img ) just like the rest....)

Thank you in advance!

EDIT 1

I've updated the link. The css resources where still linked to the intern CSS. Now you should see the right site

NoobEditor

Depending on your screen width, you'll have to adjust the z-indexes.Presently, you have not considered setting z-index and position in your media queries, thats why you are getting the issue..

you need to alter your media query for below case (and others depending on your screen width):

@media ( min-width:60em )

to

#menu {
    left: auto;
    bottom: auto;
    height: 0;
    width: 100%;
    position :relative; /*added*/
    z-index : -99 /*added*/
}

OR if you want to avoid this, define the common css at the end of the style-sheet as MQ's depend on the order (only if they have common attribute)

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

position: fixed overlapping page

From Dev

fixed position header overlapping

From Dev

Position fixed overlapping issue?

From Java

Fixed position but relative to container

From Dev

position fixed element is overlapping into footer

From Dev

Fixed position relative to parent container

From Dev

Position fixed relative to a block, not to the viewport

From Dev

Overlapping divs with relative position causes empty space

From Dev

HTML CSS Div overlapping absolute & relative position

From Dev

Overlapping divs with relative position causes empty space

From Dev

DIV Position Fixed, inner content overlapping

From Dev

How to have fixed position of element but relative to container

From Dev

How to position a relative element after a fixed element

From Dev

Make position: fixed element respect parent with position: relative

From Dev

Position fixed acting like position relative ( scrolling with page )

From Dev

Position fixed doesn't work inside relative position, CSS

From Dev

Make a relative position div follow a fixed position div when scrolling

From Dev

Make position: fixed element respect parent with position: relative

From Dev

How do I position a div relative to a fixed position div?

From Dev

Position fixed element within fixed element relative to page

From Dev

Header in fixed position is overlapping with container div when the window is reduced in width

From Dev

Preserving the appearance of CSS flow while switching position from relative to fixed

From Dev

CSS Position relative goes over fixed how to fix this?

From Dev

Position a fixed div above a relative div/h1

From Dev

Change from relative to fixed position without moving element

From Dev

how to set an element at fixed relative position in html rendering.?

From Dev

How to make a fixed menu/sidebar while using position:relative?

From Dev

Position a fixed div above a relative div/h1

From Dev

Trying to position multiple repeated elements that are fixed relative to the viewing point

Related Related

  1. 1

    position: fixed overlapping page

  2. 2

    fixed position header overlapping

  3. 3

    Position fixed overlapping issue?

  4. 4

    Fixed position but relative to container

  5. 5

    position fixed element is overlapping into footer

  6. 6

    Fixed position relative to parent container

  7. 7

    Position fixed relative to a block, not to the viewport

  8. 8

    Overlapping divs with relative position causes empty space

  9. 9

    HTML CSS Div overlapping absolute & relative position

  10. 10

    Overlapping divs with relative position causes empty space

  11. 11

    DIV Position Fixed, inner content overlapping

  12. 12

    How to have fixed position of element but relative to container

  13. 13

    How to position a relative element after a fixed element

  14. 14

    Make position: fixed element respect parent with position: relative

  15. 15

    Position fixed acting like position relative ( scrolling with page )

  16. 16

    Position fixed doesn't work inside relative position, CSS

  17. 17

    Make a relative position div follow a fixed position div when scrolling

  18. 18

    Make position: fixed element respect parent with position: relative

  19. 19

    How do I position a div relative to a fixed position div?

  20. 20

    Position fixed element within fixed element relative to page

  21. 21

    Header in fixed position is overlapping with container div when the window is reduced in width

  22. 22

    Preserving the appearance of CSS flow while switching position from relative to fixed

  23. 23

    CSS Position relative goes over fixed how to fix this?

  24. 24

    Position a fixed div above a relative div/h1

  25. 25

    Change from relative to fixed position without moving element

  26. 26

    how to set an element at fixed relative position in html rendering.?

  27. 27

    How to make a fixed menu/sidebar while using position:relative?

  28. 28

    Position a fixed div above a relative div/h1

  29. 29

    Trying to position multiple repeated elements that are fixed relative to the viewing point

HotTag

Archive