How to center all web pages?
-
- New User
- Posts: 15
- Joined: Wed Aug 18, 2010 10:43 am
- First Name: Darlene
- Last Name: Cutter
- Company Name: Grand Rapids Label Company
- Contact:
How to center all web pages?
Is there a way to automatically center all web pages within the browser screen and set a background color when the pages show on a monitor with a higher resolution?
- David
- Profound Logic Staff Member
- Posts: 690
- Joined: Fri Jan 04, 2008 12:11 pm
- First Name: David
- Last Name: Russo
- Company Name: Profound Logic Software
- Contact:
Re: How to center all web pages?
Yes, this can be done through HTML and CSS coding in the "start.html" file. All of your screens render into a <div> element with id "pui" on this page.
Centering can be achieved by giving the div a fixed width and adding "auto" margins to the left and right:
http://webdesign.about.com/od/css/ht/htcsscenterfix.htm
Centering can be achieved by giving the div a fixed width and adding "auto" margins to the left and right:
http://webdesign.about.com/od/css/ht/htcsscenterfix.htm
-
- New User
- Posts: 15
- Joined: Wed Aug 18, 2010 10:43 am
- First Name: Darlene
- Last Name: Cutter
- Company Name: Grand Rapids Label Company
- Contact:
Re: How to center all web pages?
I got this working. I tried also putting the background-color: code in the css as well and that didn't work, but I'm happy to have the pages centered. I have zero experience with html/css/javascript, etc., so sorry for the simple question! Thanks so much!
Who is online
Users browsing this forum: No registered users and 1 guest