Hi I have put the Google Ad sense after first Post - <vb:if condition="$post[postcount] % $vboptions[maxposts] == 1"> <div class="postbit"> <div style="text-align: center;"> <div class="postbody"><script type="text/javascript"><!-- google_ad_client = "pub-XXXXXXXXXXXXX"; /* 728x90, created 5/7/10 */ google_ad_slot = "9218029326"; google_ad_width = 728; google_ad_height = 90; google_color_border = "#fafafa"; google_color_bg = "#fafafa"; //--> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script> </div> </div> </div> <br /> </vb:if> Code (markup): How to set back ground colour of the box as Vbulletin default colour?
Read over your code again Find out (by looking at the CSS again) what the default VB CSS color is, and then just change that code, I quoted to that.
Thanks for your reply. But I am looking for the background colour of the ad box after the first post. As in DP.
This is how I do it: <if condition="$post[postcount] == 1"> <table width="100%" align="center" border="1" border-color="#0b198c"> <td bgcolor="#D4DFA7" align="center" > GOOGLE ADSENSE CODE </td> </table> </if> Code (markup):
This is the converted code: <vb:if condition="$post[postcount] == 1"> <table width="100%" align="center" border="1" border-color="#0b198c"> <td bgcolor="#D4DFA7" align="center" > GOOGLE ADSENSE CODE </td> </table> </vb:if> PHP: But I preffer to use CSS instead of that...