Unstoppable Domains โ€” Expired Auctions

Css, Need help centering 1024px fixed width in high resolutions

Namecheap AuctionsNamecheap Auctions
Namecheap AuctionsNamecheap Auctions
SpaceshipSpaceship
Watch
Impact
0
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
AfternicAfternic
To center any element its parent should have centered text alignment and the element should have auto left and right margins, like so:

Code:
body
{
    text-align: center;
}
#child
{
    margin: 0 auto;
    width: 1000px;
}

:wave:
 
0
•••
As DomainManDave said, just create a wrapper div that contains all your page elements, and set its margins to 0 auto;

Code:
#site-wrapper{ margin:0 auto; }

By the way, why style.php? it should be style.css :)
 
0
•••
Appraise.net
Escrow.com
Spaceship
Domain Recover
CryptoExchange.com
Catchy
DomDB
NameFit
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back