Wrox Programmer Forums
|
CSS Cascading Style Sheets All issues relating to Cascading Style Sheets (CSS).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the CSS Cascading Style Sheets section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 9th, 2008, 05:37 PM
Authorized User
 
Join Date: Mar 2007
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default Centering content

I am designing a webpage using a logo, a menu and a body section.

I want to limit the width to 780 px, centre it and have the body content to scroll behind the menu and logo.

I've managed to limit the width and get it to scroll :D but I'm stuggling with the centering :(.
Any one got any ideas for me??

Thanx

John

 
Old February 10th, 2008, 04:07 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 425
Thanks: 0
Thanked 3 Times in 3 Posts
Default

http://www.w3.org/Style/Examples/007/center.html

http://css-discuss.incutio.com/?page...ngBlockElement


--
http://yupapa.com
 
Old February 18th, 2008, 06:25 AM
Friend of Wrox
 
Join Date: Jun 2007
Posts: 477
Thanks: 10
Thanked 19 Times in 18 Posts
Default

Never feel bad about struggling with centering in CSS. For those people that give up on CSS and go back to markup based layout, centering is what gets about half of them. It's pretty embarrasing that something so much cooler and so much more advanced than table-based layouts can't even center something without all these gyrations. Stick with it. It isn't easy, but they'll get it under control. And in the meantime you CAN do it. :) It's just tough.

-------------------------

Whatever you can do or dream you can, begin it. Boldness has genius, power and magic in it. Begin it now.
-Johann von Goethe

When Two Hearts Race... Both Win.
-Dove Chocolate Wrapper

Chroniclemaster1, Founder of www.EarthChronicle.com
A Growing History of our Planet, by our Planet, for our Planet.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Centering elements in Firefox and IE akeyworth CSS Cascading Style Sheets 2 December 19th, 2007 12:02 AM
Centering a box Terry Joseph Migliorino CSS Cascading Style Sheets 3 December 28th, 2005 09:22 AM
Not centering tul CSS Cascading Style Sheets 3 September 22nd, 2005 12:16 PM
Centering of Image Within Nav Bar DuncanM CSS Cascading Style Sheets 1 April 26th, 2005 10:29 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.