How to customize an ad box table to make it responsive
-
Hi, on single post pages (after post content) I want to show an Adsense contextual unit (300x250px) and parallel to it a link unit (200x90px).
That’s possible by creating a table (code shared below).
<table border="0"><tr> <td> <script type="text/javascript"><!-- google_ad_client = "pub-1257872154896248"; /* 300x250, created 3/14/09 */ google_ad_slot = "3328905642"; google_ad_width = 300; google_ad_height = 250; //--> </script> <script type="text/javascript" src="https://pagead2.googlesyndication.com/pagead/show_ads.js"> </script> </td> <td align="right" width="750"> <script type="text/javascript"><!-- google_ad_client = "pub-1257872154896248"; /* 200x90, created 10/15/08 */ google_ad_slot = "4098589179"; google_ad_width = 200; google_ad_height = 90; //--> </script> <script type="text/javascript" src="https://pagead2.googlesyndication.com/pagead/show_ads.js"> </script> </td> </tr></table>
But when viewing it on a smartphone, the link unit cuts off and doesn’t acts responsive. How can I customize it such that the link unit displays below the 300×250 ad unit on mobile?
I hope that’s possible via CSS.
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘How to customize an ad box table to make it responsive’ is closed to new replies.