Centering Header and Footer.txt [SOLVED]

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
RBlack
Posts: 7
Joined: Tue Mar 04, 2014 9:02 am

Centering Header and Footer.txt [SOLVED]

Post by RBlack »

Script URL: http://www.euro-list.com/hesk/
Version of script: 2.6.1
Hosting company: Host Gator
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution:

center header txt, center footer txt, header footer center ...

Write your message below:

I have searched and searched for how to center the header and footer of the help desk. Can you please tell me how or at least point me in the right direction?

Thank you for your time.
Last edited by RBlack on Tue Mar 03, 2015 9:32 pm, edited 1 time in total.
mkoch227
Posts: 666
Joined: Wed Jul 04, 2012 3:37 pm

Re: Centering Header and Footer.txt

Post by mkoch227 »

In your header.txt / footer.txt markup, try adding this to the very beginning:

Code: Select all

<div style="text-align: center">
and at the very end, add this:

Code: Select all

</div>
Mike, Lead Developer of Image HESK: A surprisingly simple, user-friendly and FREE help desk software with integrated knowledgebase.
RBlack
Posts: 7
Joined: Tue Mar 04, 2014 9:02 am

Re: Centering Header and Footer.txt

Post by RBlack »

Nope... unfortunately, that didn't work. :(
Klemen
Site Admin
Posts: 10147
Joined: Fri Feb 11, 2005 4:04 pm

Re: Centering Header and Footer.txt

Post by Klemen »

Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
RBlack
Posts: 7
Joined: Tue Mar 04, 2014 9:02 am

Re: Centering Header and Footer.txt

Post by RBlack »

I've tried changing various things in the CSS. It is stuck to the left.

Please, I need someone to tell me how to do this. I'm sure I am not the first person to ask this "stupid" question.
mkoch227
Posts: 666
Joined: Wed Jul 04, 2012 3:37 pm

Re: Centering Header and Footer.txt

Post by mkoch227 »

This doesn't appear to be a HESK issue. The table itself IS centered, however the content inside is not.

Image
Mike, Lead Developer of Image HESK: A surprisingly simple, user-friendly and FREE help desk software with integrated knowledgebase.
RBlack
Posts: 7
Joined: Tue Mar 04, 2014 9:02 am

Re: Centering Header and Footer.txt

Post by RBlack »

It's centered everywhere else on my site with the same code.
Klemen
Site Admin
Posts: 10147
Joined: Fri Feb 11, 2005 4:04 pm

Re: Centering Header and Footer.txt

Post by Klemen »

You need to understand that teaching HTML/CSS is out of the scope of our support here, or we could be here all day long answering customization questions.

That said, a solution to your problem would be to assign your header/footer tables a class name, for example:

Code: Select all

<table class="myfooter">
Then use the appropriate CSS code (inside hesk_style.css or a custom style file) to center text inside footer class td's:

Code: Select all

.myfooter td {
	text-align: center;
}
To learn more about CSS please search Google, there are a lot of good free tutorials available.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
RBlack
Posts: 7
Joined: Tue Mar 04, 2014 9:02 am

Re: Centering Header and Footer.txt

Post by RBlack »

I LOVE YA BABY!!!!!
Klemen
Site Admin
Posts: 10147
Joined: Fri Feb 11, 2005 4:04 pm

Re: Centering Header and Footer.txt [SOLVED]

Post by Klemen »

Glad to hear you got it working.

P.s.: if you use Firefox press CTRL + SHIFT + C when viewing a web page, a very powerful tool for inspecting HTML elements and their CSS properties will open.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Post Reply