We're a community of 1077K IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,076,140 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

CSS Centering Issue

Hi there
I am trying to center my website template to the middle of the page...currently at the left.
Cant find which part of the CSS files it goes with...can anyone help?

http://home.comcast.net/~waynetorrance/roomies/index.html

2
Contributors
3
Replies
16 Hours
Discussion Span
1 Year Ago
Last Updated
4
Views
Question
Answered
saucy6969
Light Poster
49 posts since Apr 2010
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0

To center the content in the middle of the page, the easiest way is to create two divs. An outer and inner div. The outer div, just needs the following CSS properties applied, such as {width:1000px;margin-left:auto;margin-right:auto}. Now, within this div, you can create the inner div which will contain whatever other CSS properties to apply to your overall content. Then go from there.

JorgeM
Industrious Poster
4,018 posts since Dec 2011
Reputation Points: 297
Solved Threads: 548
Skill Endorsements: 115

yeah! everything centred itself with the code you provided! Thank you heaps!

saucy6969
Light Poster
49 posts since Apr 2010
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0
Question Answered as of 1 Year Ago by JorgeM

great news...glad the information helped.

JorgeM
Industrious Poster
4,018 posts since Dec 2011
Reputation Points: 297
Solved Threads: 548
Skill Endorsements: 115

This question has already been solved: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
View similar articles that have also been tagged:
 
© 2013 DaniWeb® LLC
Page rendered in 0.0715 seconds using 2.78MB