Sign in to follow this  
Followers 0
Sandeep V Sarathy

How To Bring The Web Page To The Middle Of The Browser?

1 post in this topic

Hi Guys,

The most basic problem I faced while designing my first website was the fact that I did not know how to bring the web page to the middle of my browser. So after googling a bit I got the solution. Thought I'd share it with you -

I used Cascading Style Sheet(CSS) for styling my web pages. So here is what I did -

In my CSS for the I wrote this pices of code and booom!!! my page automatically came to the middle of the browser -

body {

margin: 0 auto 0 auto;

width: 800px;

}

Hope this was helpful..

Cheers!!

Sandeep

www.smartwayofsuccess.com

Want to create your own WEBSITE and start your business online??? Don't know How??

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
Sign in to follow this  
Followers 0