My question is, I have a layout website called www.msdazzlebackgrounds.com And I want to know "Where" in the CSS code do I enter my adsense script to be on the top banner? I am NOT asking where I can put my adsense in a myspace profile, I have my own website, that offers layouts, but I don't know where exactly to place the script. I will give you the CSS code. Thanks. This is the css code for the myspace layout, where exactly do I add the adsense code in this? Please kindly READ the PREVIOUS QUESTION CAREFULLY BEFORE ANSWERING. <style type="text/css"> body { background-color: rgb(255, 255, 255); background-image: url(http://i216.photobucket.com/albums/cc191... background-position: top left; background-repeat: repeat; background-attachment: fixed; } table, tr, td { background-color: transparent; border: 0px; } table table { border: 0px; } table table table table{ border:0px; } table table table { border-width: 8px; border-color: rgb(0, 0, 0); border-style: solid; background-color: transparent; } table table table td { background-color: rgb(140, 0, 255); filter:alpha(opacity=88); -moz-opacity:0.88; opacity:0.88; -khtml-opacity:0.88; } table table table table td { filter:none; } </style> body, div, span, td, p, .orangetext15, .whitetext12, .lightbluetext8, strong, b, u, .redtext, .redbtext, .btext, .text, .nametext, .blacktext10, .blacktext12 { font-family: Tahoma; font-style: normal; text-decoration: none; } .nametext { padding: 5px; font-family: Tahoma; font-size: 16px; color: rgb(0,0,0); font-weight: bold; font-style: normal; text-decoration: none; display: block; } .whitetext12, .orangetext15 { font-family: Tahoma; font-size: 16px; color: rgb(0, 0, 0); font-weight: bold; font-style: normal; text-decoration: underline; } a.navbar:link, a.navbar:active, a.navbar:visited, a.navbar:hover, a.man:link, a.man:active, a.man:visited, a.man:hover, a, a:link, a:active, a:visited, a:hover, a.navbar:link, a.navbar:active, a.navbar:visited, a.navbar:hover, a.text:link, a.text:active, a.text:visited, a.text:hover, a.searchlinksmall:link, a.searchlinksmall:active, a.searchlinksmall:visited, a.searchlinksmall:hover, a.redlink:link, a.redlink:active, a.redlink:visited, a.redlink:hover { color: rgb(0, 0, 0); font-weight: bold; font-style: normal; text-decoration: none; } a.navbar:hover, a.man:hover, a:hover { color: rgb(0, 0, 0); font-weight: bold; font-style: normal; text-decoration: none; } a.navbar:hover, a.man:hover, a:hover { color: rgb(0, 0, 0); font-weight: bold; font-style: normal; text-decoration: underline; } .badge { position: absolute; left: 1px; top: 1px; } </style>
I wasn't aware that you could put adsense into a css file but I could be wrong for sure. To answer your question, however, how I do it is to place the adsense code in my header.php file. I also need to make the space required in my css file to accommadate the code. Someone else may come along with a better solution but that is the one use when placing a banner above or just below the logo as a banner.
roseau, you're right - you can't put AdSense code into a stylesheet. What you can do is tell the stylesheet where to display the element (usually a DIV) that the script containing the AdSense unit is in. Which I can't do unless I see the HTML code for the page in question.
Hello, Can you tell me how she put the adsense here? I am using CPanel, my website www.msdazzlebackgrounds.com is php, it uses a content management system. http://whateverlife.com/profile/?layout=theoccode For me, I have a separate table in my database for ads, but I tried putting a google ad directly in the css code, uploaded it to my website, and it showed up, but i forgot how to do it. The thing is, it is nerve recking to go back and add an adsense code to each layout, do you know of any way that rotates the ad? Where would I go to do that?