How to center all web pages?

Use this board to ask questions or have discussions with other Rich Displays users.
Post Reply
dcutter
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?

Post by dcutter »

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?
User avatar
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?

Post by David »

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
dcutter
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?

Post by dcutter »

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!
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests