Centering my site |
This is a discussion on Centering my site within the CSS forums, part of the Development category; My Site How can I get this centred in the browser (vertically and horizontally)?... |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| | #1 |
| Member Join Date: Jan 2009
Posts: 99
Thanks: 2
Thanked 0 Times in 0 Posts
![]() | Last edited by trixiemay; 10th March 2010 at 10:34 PM.. Reason: spelling |
| | |
| | #2 |
![]() Join Date: Dec 2008
Posts: 700
Thanks: 0
Thanked 37 Times in 37 Posts
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Expertise: Design & Graphics Experience: Professional |
Bit confused by your css - you have entries for a class called 'wrapper' (no class called wrapper in your html) and an id, which is in your wrapper. Delete the class 'wrapper's css as it could conflict as it appears to in Chrome (that last -135px will affect the left margin too as there is no specific instruction for it - you need to add another 'auto' like so: margin: 0 auto -135px auto;). Quick google, though, for vertical & horizontal centring came up with this: CSS examples - centred page however, the vertical position seems optically too low, so I'd just use a top margin to bring the page away from the top, or use that technique and use a negative top margin to bring it up a touch.
__________________ Jon Warner Web Pro Cafe :: The PixelForge :: Follow my Twits (or something) :: LinkedIn |
| | |
![]() |
| Tags |
| centering, site |
| Thread Tools | |
| Display Modes | |