Jump to content
xisto Community
puneye

How To Make Center Align Webpage With Css That works in ie8 beta 2

Recommended Posts

I create website with Dreamweaver cs3 using table. While using table I can make center align pages. But Now I start layout my website with css. I read lots of tutorial related to page layout. But I didn't find how to make center aligned webpages. I can Make Left aligned but not center. I want to make website like this http://napn.org.np/
Anybody can help me how to make it ?

Share this post


Link to post
Share on other sites

The CSS for making a site centred is to add margin: 0 auto; to the containing block.And giving the div a width is required.Older browsers will need text-align: center as well. Add text-align: left; after the centring is complete.

Share this post


Link to post
Share on other sites

The CSS for making a site centred is to add margin: 0 auto; to the containing block.And giving the div a width is required.
Older browsers will need text-align: center as well. Add text-align: left; after the centering is complete.


Thank you for suggestions But.
Can u write me a div code to make it for me.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.