1,105,578 Community Members

CSS Centering Issue

Member Avatar
saucy6969
Junior Poster in Training
58 posts since Apr 2010
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 3 [?]
 
0
 

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

Member Avatar
JorgeM
IT Addict
6,414 posts since Dec 2011
Reputation Points: 581 [?]
Q&As Helped to Solve: 963 [?]
Skill Endorsements: 172 [?]
Moderator
Featured
Sponsor
 
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.

Member Avatar
saucy6969
Junior Poster in Training
58 posts since Apr 2010
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 3 [?]
 
0
 

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

Question Answered as of 2 Years Ago by JorgeM
Member Avatar
JorgeM
IT Addict
6,414 posts since Dec 2011
Reputation Points: 581 [?]
Q&As Helped to Solve: 963 [?]
Skill Endorsements: 172 [?]
Moderator
Featured
Sponsor
 
0
 

great news...glad the information helped.

You
This question has already been solved: Start a new discussion instead
Post:
Start New Discussion
View similar articles that have also been tagged: