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
Centering All Header Text
Edit the file style.css
Can be found here: templates\default\style.css
Change to
Greetings,
Henrie
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;}
Code: Select all
#gbook_top_links{width:450px; height:50px; margin-left:120px; margin-top:10px;text-align:center;}
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.
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.
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.
To pull the top H1 text to the left after pulling header image to left (which moves everything), one needs to adjust this:
setting the 'left:' to a lower number will move H1 text to the left.
Code: Select all
h1{margin:0; padding-top:5px; font-family:Tahoma; color:#ffffff; font-weight:bold; font-size:30px; position:relative; left:0px;}