WordPress.org

Support

Support » Themes and Templates » CSS alignment problem on absolute position

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.
Skip to toolbar