Centering a Page In CSS

This is a discussion on "Centering a Page In CSS" within the Web Page Design section. This forum, and the thread "Centering a Page In CSS are both part of the Design Your Website category.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Jan 3rd, 2008, 15:56
New Member
Join Date: Jan 2008
Location: Didcot
Age: 18
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Centering a Page In CSS

Hi im wishing to have my site centred using css and don't know where im going wrong...

http://www.future-digital.co.uk/

Also could i have some help in auto sizing the height of the page because 1080 height leaves a box underneath it.

Thank you very much,

Jack Jones
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Jan 3rd, 2008, 16:05
Ed Ed is offline
Moderator
Join Date: Jul 2007
Location: Cork, Ireland
Posts: 730
Blog Entries: 1
Thanks: 0
Thanked 1 Time in 1 Post
Re: Centering a Page In CSS

Hello.

You'll find that searching the forum will be quite sufficient for your answers.
Currently, there is a thread on centering websites in the HTML Forum.

(I'm also pretty certain that if you don't set a value for the height of a page, it will be auto. If not, height: 100%; should work. )

If you have any problems - as to implementing anything you see on the forum, feel free to create a new thread relevant to the problem you are having.

Thanks,
Ed
Last Blog Entry: Happy New Year! (Dec 31st, 2007)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Jan 3rd, 2008, 16:07
Elite Veteran
Join Date: Jan 2007
Location: You know where
Age: 31
Posts: 4,617
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Centering a Page In CSS

It's usually quite simple - How do I center my site horizontally?

However, will all the absolute positioning you have in there ... and the z-index it won't work.

I suggest you strip all the positioning and use floats instead. It's much easier to deal with. And quite frankly, I don't see the reasoning behind the positioning and z-index for your site.

hth
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old Jan 3rd, 2008, 16:14
New Member
Join Date: Jan 2008
Location: Didcot
Age: 18
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Centering a Page In CSS

thank you both for your replies... i used to do web design work all the time before css came about and this is my first attempt with this 'new' style of coding lol (even tho im only 18 lol)... please could you help me out a tad here karinne if you have some spare moments if not no worries and ill give it ago myself... i just dont want to destroy what i've already got and it seems awkward with the flash video!

THANKS!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old Jan 3rd, 2008, 16:20
Elite Veteran
Join Date: Jan 2007
Location: You know where
Age: 31
Posts: 4,617
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Centering a Page In CSS

Totally understand CSS is something that takes a bit of time to get to grips with

I wonder if this would help - A websites' structure from A to Z

The main thing is you need to start it off right. Get the right sections down for your mark-up then style it with css.

This thread - Resources for learning how to use CSS for layout - has just about everything you need to know about CSS layouts. There's a section with example layouts as well.

You won't get this down in a day so ... don't be flustered if it doesn't work by tonight
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6  
Old Jan 3rd, 2008, 16:20
New Member
Join Date: Jan 2008
Location: Didcot
Age: 18
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Centering a Page In CSS

thanks alot!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] page centering issues VanderBOOM Web Page Design 12 Dec 4th, 2007 15:06
Centering an image on my web page Fysicus Web Page Design 8 Sep 21st, 2007 12:43
Need Help Centering my index page??? 0413 Starting Out 6 Jun 9th, 2007 06:40
Centering page question bklcomputing Web Page Design 1 May 20th, 2005 18:49
Centering layers in a page gwx03 Web Page Design 9 Nov 26th, 2003 19:55


All times are GMT. The time now is 19:16.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42