Title: CSS alignment problem on absolute position
Last modified: August 19, 2016

---

# CSS alignment problem on absolute position

 *  [3pepe3](https://wordpress.org/support/users/3pepe3/)
 * (@3pepe3)
 * [18 years, 2 months ago](https://wordpress.org/support/topic/css-alignment-problem-on-absolute-position/)
 * Hello world…
 * I’m try to create my themplate integrating swf (flash elements)… for the background
   i have a SWF that is the size (or is resized)of the document (all the html page).
   
   So editing the CSS i’m tring to move #page but i can’t find the way to center
   this div when the position is set to absolute.
 *     ```
       #page {
       	background-color: white;
       	text-align: center;
                  position:absolute;
                  top:300px;
                  left:0px;
       	}
       ```
   
 * Is there anything i can do… like:
    `left:50%-300px;` Well in concution how do
   you center and div when his positions is set to absolute?

The topic ‘CSS alignment problem on absolute position’ is closed to new replies.

## Tags

 * [absolute](https://wordpress.org/support/topic-tag/absolute/)
 * [center](https://wordpress.org/support/topic-tag/center/)
 * [div](https://wordpress.org/support/topic-tag/div/)
 * [margin](https://wordpress.org/support/topic-tag/margin/)

 * 0 replies
 * 1 participant
 * Last reply from: [3pepe3](https://wordpress.org/support/users/3pepe3/)
 * Last activity: [18 years, 2 months ago](https://wordpress.org/support/topic/css-alignment-problem-on-absolute-position/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
