PDA

View Full Version : HTML to CSS - AdSense



Spectate
20-01-2007, 10:54 PM
This could be really simple, but how exactly would I go about implementing the html Google AdSense code in CSS coding? Do I just stick it in body and change the "=" to ":" and such, or is there more to it?

Edited by Lµke (Forum Moderator): Thread Moved from Website Designing. Please post in the correct section next time, Thanks :).

F32
20-01-2007, 10:57 PM
No content goes in CSS; it's just for designing?

Spectate
20-01-2007, 11:10 PM
Alright then, where would I put the code? In index.php? Though then that raises the question of how to implement the code in php :p.

F32
20-01-2007, 11:12 PM
Just plonk it in.

.php pages read .html you know :P

Yeh, just put it in anywhere.

Spectate
20-01-2007, 11:17 PM
I did that, though it didn't seem to work.

F32
20-01-2007, 11:21 PM
Any example?

Mentor
20-01-2007, 11:21 PM
You put the adsence code where you want it to appear, you want it in a div at the bottom, put it between that divs div tags. Simple as pie... actualy simple, pie requres cooking and a varity of ingrediance.

F32
20-01-2007, 11:25 PM
Runescape Pie takes around a week to make.

It's plonking the code it the index.php/html page, not the Css.

Spectate
20-01-2007, 11:37 PM
I don't have to put <html></html> around it or anything? As I'm still having problems.

EDIT: I may have been pretty stupid, unless something shows before relevant ads actually appear?

Want to hide these adverts? Register an account for free!