Page 1 of 1

Centering All Header Text

Posted: Tue Sep 29, 2009 11:39 am
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

Posted: Tue Sep 29, 2009 8:51 pm
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

Posted: Tue Sep 29, 2009 10:30 pm
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.

Posted: Tue Sep 29, 2009 11:04 pm
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.

Posted: Wed Sep 30, 2009 5:46 am
by Henrie
Ah, i misunderstood you. You wanted the text centered on the page. Not just center aligned under eachother.

Greetings,
Henrie