z-index not working with fixed positioning

Add position: relative to #over as shown in this snippet: #over { width: 600px; z-index: 10; position: relative; } #under { position: fixed; top: 14px; width: 415px; left: 53px; border: 1px solid; height: 10%; background: #f0f; z-index: 1; } <!DOCTYPE html> <html> <body> <div id=”over”><P>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod … Read more

Minimum and maximum value of z-index?

http://www.w3.org/TR/CSS21/visuren.html#z-index ‘z-index’ Value: auto | <integer> | inherit http://www.w3.org/TR/CSS21/syndata.html#numbers Some value types may have integer values (denoted by <integer>) or real number values (denoted by <number>). Real numbers and integers are specified in decimal notation only. An <integer> consists of one or more digits “0” to “9”. A <number> can either be an <integer>, or … Read more