OZONE Asylum
Forums
XML - XSL - XSLT - XHTML - CSS - DOM
Page in CSS: Attempt 2
This page's ID:
10971
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
to center something in a page all you need to do is this: [b]position: absolute, or relative[/b] [b]top: 50%[/b] [b]left: 50%[/b] [b]margin-top: -100px[/b] // this value is exactly half the height of whatever it is you are centering - moves the object 100 pixels up [b]margin-left: -50px[/b] // this value is exactly half the width of whatever it is you are centering - moves the object 50 pixels left The negative margins (so called because they are values below than zero) move the object by the number of pixels you specify in which ever direction you specify. [url=http://www.cryokinesis.co.uk]visit my CryoKinesis Online Gallery[/url]
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »