PDA

View Full Version : Google Ads and Centering Text


Radioman55
10-02-2006, 09:35 PM
Hello!

I'm a newbie with a 2 quick questions.

1-I read on the knowledgebase (http://www.phplinkdirectory.com/kb/How_to_Add_Adsense.html) about how to place Google ads by putting {literal} tags before and after the code, however I don't know which .css files to put the code in or where to put the code. What I would like to do is just have a horizontal Google ads at the BOTTOM of each page, including the index page. Can anyone give me some help or advice? Here is my site:

http://www.disneydirectory.net/

2-My next question is this, I used the following code to center the categories on the front page of my website:

body { text-align: center; min-width: 500px;}#wrapper { text-align: left; width: 500px; margin-left: auto; margin-right: auto;

I got the code from THIS (http://css-discuss.incutio.com/?page=CenteringBlockElement) website. This code works great with IE but it does not work in the latest version of Firefox. Does anyone have any suggestions for me?

Chad

TravisTX
10-03-2006, 04:09 AM
regarding your first question, you want to add your adsense code to the footer.tpl if you want it to appear at the bottom of every page. You could also put it at the bottom of main.tpl, but that wouldn't include the submit page, payment pages, etc.

Radioman55
10-03-2006, 02:13 PM
Hey thanks Travis it worked!!!

Now if I can just find some code that will center the text and that will work with IE and Firefox both....

Chad

Radioman55
10-03-2006, 04:37 PM
Hey, I actually figured out the centering problem, this code worked in both IE and Firefox, (pasted at the top of main.css):

Content visible to registered users only.
Here is the site now, feel free to test it and let me know if you see any problems in your browser at all:

http://www.disneydirectory.net/

Chad