WordPress.org

Ready to get started?Download WordPress

Forums

CSS alignment problem on absolute position (1 post)

  1. 3pepe3
    Member
    Posted 6 years ago #

    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?

Topic Closed

This topic has been closed to new replies.

About this Topic