Title: z-index/css problem
Last modified: August 19, 2016

---

# z-index/css problem

 *  [simuuu](https://wordpress.org/support/users/simuuu/)
 * (@simuuu)
 * [18 years, 3 months ago](https://wordpress.org/support/topic/z-indexcss-problem/)
 * Hi !
 * I have a problem i can’t solve by myself (i tried, i swear ).
 * The z-index seems to change between the [main blog page](http://wordpress.simonlagneaux.com/)
   and [a single post page](http://wordpress.simonlagneaux.com/?p=4)…
 * The header is behind the background, the z-index of the sidebars seems blocked….
   
   i don’t get it. I know my css file is active because all the background images
   are visible.
 * Thanks for any help !

Viewing 1 replies (of 1 total)

 *  842266
 * [17 years, 10 months ago](https://wordpress.org/support/topic/z-indexcss-problem/#post-707597)
 * You have to make the same div position:absolute; that you do z-index: 1; to (
   for e.g.) and another div has to have z-index: 2; and position: absolute; so 
   it goes like this:
 * edit /public_html/wp-content/themes/your_theme/page.php
 * <head> <!–or your css file–>
    <style> #1 {position: absolute; width: 100%; height:
   40px; z-index:1;}
 * #2 {position: absolute;
    z-index:2;} width: 100px; height: 100%; /*(or something
   else – like 1000px )*/ </style> </head>
 * <body>
    <div id=1> some text, header, etc. </div> <div id=2> other text <img 
   src=”(/images/some_photo.jpg)”> </div>
 * </body>

Viewing 1 replies (of 1 total)

The topic ‘z-index/css problem’ is closed to new replies.

## Tags

 * [css](https://wordpress.org/support/topic-tag/css/)
 * [single.php](https://wordpress.org/support/topic-tag/single-php/)
 * [Z-index](https://wordpress.org/support/topic-tag/z-index/)

 * 1 reply
 * 2 participants
 * Last reply from: 842266
 * Last activity: [17 years, 10 months ago](https://wordpress.org/support/topic/z-indexcss-problem/#post-707597)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
