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?


Recommended Answers

All 3 Replies

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.

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

great news...glad the information helped.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.