NetTalk Central

Author Topic: Center all pages  (Read 4664 times)

Alberto

  • Hero Member
  • *****
  • Posts: 1873
    • MSN Messenger - alberto-michelis@hotmail.com
    • View Profile
    • ARMi software solutions
    • Email
Center all pages
« 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
-----------
Regards
Alberto

ccordes

  • Sr. Member
  • ****
  • Posts: 384
    • View Profile
    • Email
Re: Center all pages
« Reply #1 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
Real programmers use copy con newapp.exe

Mike Grigsby

  • Sr. Member
  • ****
  • Posts: 380
    • Yahoo Instant Messenger - onthedotsoftware
    • View Profile
    • MyHomeAssets! Software (among others)
Re: Center all pages
« Reply #2 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;
}
Mike Grigsby
Credify Systems
Central Oregon, USA

Alberto

  • Hero Member
  • *****
  • Posts: 1873
    • MSN Messenger - alberto-michelis@hotmail.com
    • View Profile
    • ARMi software solutions
    • Email
Re: Center all pages
« Reply #3 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
-----------
Regards
Alberto

ccordes

  • Sr. Member
  • ****
  • Posts: 384
    • View Profile
    • Email
Re: Center all pages
« Reply #4 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
Real programmers use copy con newapp.exe

Mike Grigsby

  • Sr. Member
  • ****
  • Posts: 380
    • Yahoo Instant Messenger - onthedotsoftware
    • View Profile
    • MyHomeAssets! Software (among others)
Re: Center all pages
« Reply #5 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
Mike Grigsby
Credify Systems
Central Oregon, USA