NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: Alberto on September 09, 2009, 09:04:37 AM

Title: Center all pages
Post by: Alberto on September 09, 2009, 09:04:37 AM
Hi,

I have a site that has a fixed header and a fix footer, they are centered.
I need all the pages generated by NTWS be centered.
To achive this, I am modifying all the CSS, but in some cases, I dont get the result I want.
The browses, by example, they appears to the left the first time and when I click on Next or Last, etc it get centered.
Is there any easy and effective way?

Thanks
Alberto
Title: Re: Center all pages
Post by: ccordes on September 09, 2009, 05:25:13 PM
JAT - you could open a div tag at the end of your header and close it in your footer give it a class that aligns kind of center

I don't know of a horizontal position: center property but you might do this
<div style="width: 75%; left: 12%; position: relative"> bottom of the header
</div> top of the footer
to give the feeling of being cenetered by the margins relative to the header.
as long as you don't use any absolute positioning in the rest of your sytle sheets it might not look too bad.

chris
Title: Re: Center all pages
Post by: Mike Grigsby on September 10, 2009, 12:58:46 AM
I'm getting my butt kicked by clients over the issue of centering applications. They jump from a centered website to an app that is left justified, and they don't like that.

One thing that helps is to add some space in the css file. This is the code I use in my all.css file to give a bit more space on the left. The problem is it has little meaning if someone is using a really big monitor:

.PageBody {
  margin-left: 50px;
}
Title: Re: Center all pages
Post by: Alberto on September 10, 2009, 02:11:12 AM
Thanks all,
I've tried your ideas but they finished in left indent bodies with centered headers and footers.
I am using one .PageBody, .alert, .button, .div  per page, one for the login page, one for each browse, etc
A lot of confused work.
Alberto
Title: Re: Center all pages
Post by: ccordes on September 10, 2009, 05:59:58 AM
Can you post an address to one of the centered pages you are trying to match?

chris
Title: Re: Center all pages
Post by: Mike Grigsby on September 10, 2009, 03:41:43 PM
Well, I'll throw one out that I'm working on: http://74.60.133.68:4608/Showroom2