Warrior Forum - The #1 Digital Marketing Forum & Marketplace

Warrior Forum - The #1 Digital Marketing Forum & Marketplace (https://www.warriorforum.com/)
-   Programming (https://www.warriorforum.com/programming/)
-   -   What is the code to do this??? (https://www.warriorforum.com/programming/442072-what-code-do.html)

galisgos 30th August 2011 06:54 AM

What is the code to do this???
 
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?

johnnyN 30th August 2011 07:08 AM

Re: What is the code to do this???
 
would need to see the code, and the html.

jefftardif 30th August 2011 09:01 AM

Re: What is the code to do this???
 
<div style="float:left;">First AdSense Code</div><div>Second AdSense Code</div>

RokDot 30th August 2011 10:34 AM

Re: What is the code to do this???
 
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.

david5000 30th August 2011 10:35 AM

Re: What is the code to do this???
 
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.

david5000 30th August 2011 10:37 AM

Re: What is the code to do this???
 
Also just had the idea.. but both adsense code in the same DIV.

vinug 30th August 2011 11:03 AM

Re: What is the code to do this???
 
Quote:

Originally Posted by jefftardif (Post 4574423)
<div style="float:left;">First AdSense Code</div><div>Second AdSense Code</div>

i think the entire code above can be put inside a <div>{above code here}</div>
It should work fine.

jefftardif 1st September 2011 02:12 PM

Re: What is the code to do this???
 
Quote:

Originally Posted by vinug (Post 4575182)
i think the entire code above can be put inside a <div>{above code here}</div>
It should work fine.

Yes it will

NickBhakta 1st September 2011 02:51 PM

Re: What is the code to do this???
 
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>


All times are GMT -6. The time now is 11:58 AM.