Centering All Header Text

Dr. GBooky is here to help you with your guestbook problems ...
Post Reply
newguy
Posts: 15
Joined: Mon Sep 28, 2009 2:49 pm

Centering All Header Text

Post by newguy »

Script URL:
Version of script: 1.7
Hosting company: HostGator
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution: Centering Header Text

Write your message below:
Can you please explain to us how to center all the header text. The text I speak of is the very top Title text, and the 3 links underneath.

Thank you
Henrie
Posts: 1095
Joined: Sun Aug 14, 2005 8:57 pm

Post by Henrie »

Edit the file style.css

Can be found here: templates\default\style.css

Change

Code: Select all

#gbook_top_links{width:450px; height:50px; margin-left:120px; margin-top:10px;}
to

Code: Select all

#gbook_top_links{width:450px; height:50px; margin-left:120px; margin-top:10px;text-align:center;}
Greetings,
Henrie
I do not monitor the Gbook forums regularly anymore since I do not use the Gbook script myself anymore for a long time. But it helped me a lot in learning to understand php.
newguy
Posts: 15
Joined: Mon Sep 28, 2009 2:49 pm

Post by newguy »

Not working Henrie, there is no change at all after changing code. It still pulls to the right opposed to the Copyright ino at bottom which is dead center.

UPDATE: After playing with it a bit, I see that it is the new code that is pulling it even more to the right. Summary: Before adding the new code I thought that all the top text was pulling to the right, but then after adding the code I see that it was more centered than I thought as the new code REALLY pulled it over to the right. I set code back to default and stepped back to take another look. I guess the only aspect that is truely pulling to the right is the very top text.
newguy
Posts: 15
Joined: Mon Sep 28, 2009 2:49 pm

Post by newguy »

To pull the top H1 text to the left after pulling header image to left (which moves everything), one needs to adjust this:

Code: Select all

h1{margin:0; padding-top:5px; font-family:Tahoma; color:#ffffff; font-weight:bold; font-size:30px; position:relative; left:0px;}
setting the 'left:' to a lower number will move H1 text to the left.
Henrie
Posts: 1095
Joined: Sun Aug 14, 2005 8:57 pm

Post by Henrie »

Ah, i misunderstood you. You wanted the text centered on the page. Not just center aligned under eachother.

Greetings,
Henrie
I do not monitor the Gbook forums regularly anymore since I do not use the Gbook script myself anymore for a long time. But it helped me a lot in learning to understand php.
Post Reply