Title: Div Wrapper Not Working
Last modified: August 19, 2016

---

# Div Wrapper Not Working

 *  [JuliaTHC](https://wordpress.org/support/users/juliathc/)
 * (@juliathc)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/div-wrapper-not-working/)
 * Hi there.
 * I’m having some trouble with my wordpress theme’s splash page. My DIV wrapper
   is supposed to contain all the floating DIVs used on the page and keep them fixed,
   but they still move around in different resolutions/browers. I was hoping someone
   would have an idea? I’m still fairly new to all of this. My site is [http://thcanada.com](http://thcanada.com)
 * Thank you!
 * CSS for wrapper and body
 *     ```
       body {
       margin : 0 auto;
       background : #b6b6b6 url("images/bg.jpg") repeat-y top center;
       color : #5d5d5d;
       font : 11px Arial;
       align: center;
       }
   
       #wrap {
       width : 1004px;
       margin : auto;
       color : #474747;
       text-align : center;
       font : 11px Arial;
       clear : both;
       }
       ```
   
 * HTML for splash page template
 * [moderator note: snipped as per the forum rules – please use [http://wordpress.pastebin.ca](http://wordpress.pastebin.ca)]

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/div-wrapper-not-working/#post-1790674)
 * to position elements with ‘position: absolute;’ within a container div, this 
   div needs to have the ‘position: relative;’
 * suggestion:
 * add `position: relative;` to the style of `#wrap` and reposition the other elements
   accordingly.
 * (without this, the absolute position would be relative to the browser window)
 * [http://www.w3schools.com/css/css_positioning.asp](http://www.w3schools.com/css/css_positioning.asp)
 *  Thread Starter [JuliaTHC](https://wordpress.org/support/users/juliathc/)
 * (@juliathc)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/div-wrapper-not-working/#post-1790981)
 * Okay, thank you… I will try to use relative! I’ll let you know how it works out.
   =)

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Div Wrapper Not Working’ is closed to new replies.

## Tags

 * [center](https://wordpress.org/support/topic-tag/center/)
 * [div](https://wordpress.org/support/topic-tag/div/)
 * [float](https://wordpress.org/support/topic-tag/float/)
 * [layout](https://wordpress.org/support/topic-tag/layout/)
 * [wrapper](https://wordpress.org/support/topic-tag/wrapper/)

 * 2 replies
 * 2 participants
 * Last reply from: [JuliaTHC](https://wordpress.org/support/users/juliathc/)
 * Last activity: [15 years, 6 months ago](https://wordpress.org/support/topic/div-wrapper-not-working/#post-1790981)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
