| | #1 |
| Active Warrior Join Date: 2011
Posts: 54
Thanks: 0
Thanked 3 Times in 1 Post
|
OK, I have a code in Wordpress to put an Adsense ad under each post. What I want is to add another block, but so they are side to side. No matter what I am doing at the moment, the blocks are going on top of each other - what is the code to stack them side by side? |
| |
| | #2 |
| Active Warrior War Room Member Join Date: 2009
Posts: 97
Thanks: 4
Thanked 14 Times in 14 Posts
|
would need to see the code, and the html.
|
| |
| | #3 |
| Active Warrior War Room Member Join Date: 2010
Posts: 35
Thanks: 33
Thanked 4 Times in 4 Posts
|
<div style="float:left;">First AdSense Code</div><div>Second AdSense Code</div>
|
|
Jeff Tardif - [WSO] http://www.warriorforum.com/warrior-...of-inside.html | |
| |
| | #4 |
| Mr Rok War Room Member Join Date: 2011 Location: Narnia
Posts: 134
Thanks: 3
Thanked 15 Times in 11 Posts
|
All you need is Div's. Easiest way of doing it. Just google "Div tables" and it'll all come up. Html is a lot easier than it looks. |
| |
| | #5 |
| HyperActive Warrior Join Date: 2011
Posts: 189
Thanks: 4
Thanked 10 Times in 10 Posts
|
Are you using CSS to control the Divs ? Try floating the second DIV to the left as well. If that doesn't work then add a padding of 350px to the second div I'm not at my normal PC so i can't do the code up for you. |
| |
| | #6 |
| HyperActive Warrior Join Date: 2011
Posts: 189
Thanks: 4
Thanked 10 Times in 10 Posts
|
Also just had the idea.. but both adsense code in the same DIV.
|
| |
| | #7 |
| Active Warrior Join Date: 2010
Posts: 99
Thanks: 10
Thanked 15 Times in 15 Posts
| |
| Your online store for Trendy Printed T shirts | |
| |
| | #8 |
| Active Warrior War Room Member Join Date: 2010
Posts: 35
Thanks: 33
Thanked 4 Times in 4 Posts
| |
|
Jeff Tardif - [WSO] http://www.warriorforum.com/warrior-...of-inside.html | |
| |
| | #9 |
| Warrior Member Join Date: 2011 Location: US
Posts: 19
Thanks: 0
Thanked 2 Times in 2 Posts
|
What I would do for consistency is place each Adsense block in its own <div> tags. This way if you want to customize each block differently, you can do so with css. I would also float each <div> block to the left. Like this: <div float="left">Adsense Code Block 1</div> <div float="left">Adsense Code Block 1</div> |
|
Nick Bhakta
| |
| |
|
| Bookmarks |
| Tags |
| code |
| |