Register Advertise with usHelp Desk Today's Posts Search

Closed Thread
Thread Tools Search this Thread
Unread 30th Aug 2011, 06:54 AM   #1
Active Warrior
 
Join Date: 2011
Posts: 54
Thanks: 0
Thanked 3 Times in 1 Post
Default
What is the code to do this???
Share on: 
fb share twitter share gplus share more share

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?
galisgos is offline  
Unread 30th Aug 2011, 07:08 AM   #2
Active Warrior
War Room Member
 
Join Date: 2009
Posts: 97
Thanks: 4
Thanked 14 Times in 14 Posts
Default
Re: What is the code to do this???
Share on: 
fb share twitter share gplus share more share

would need to see the code, and the html.
johnnyN is offline  
Unread 30th Aug 2011, 09:01 AM   #3
Active Warrior
War Room Member
 
Join Date: 2010
Posts: 35
Thanks: 33
Thanked 4 Times in 4 Posts
Default
Re: What is the code to do this???
Share on: 
fb share twitter share gplus share more share

<div style="float:left;">First AdSense Code</div><div>Second AdSense Code</div>

jefftardif is offline  
Unread 30th Aug 2011, 10:34 AM   #4
Mr Rok
War Room Member
 
RokDot's Avatar
 
Join Date: 2011
Location: Narnia
Posts: 134
Thanks: 3
Thanked 15 Times in 11 Posts
Default
Re: What is the code to do this???
Share on: 
fb share twitter share gplus share more share

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.
RokDot is offline  
Unread 30th Aug 2011, 10:35 AM   #5
HyperActive Warrior
 
david5000's Avatar
 
Join Date: 2011
Posts: 189
Thanks: 4
Thanked 10 Times in 10 Posts
Default
Re: What is the code to do this???
Share on: 
fb share twitter share gplus share more share

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 is offline  
Unread 30th Aug 2011, 10:37 AM   #6
HyperActive Warrior
 
david5000's Avatar
 
Join Date: 2011
Posts: 189
Thanks: 4
Thanked 10 Times in 10 Posts
Default
Re: What is the code to do this???
Share on: 
fb share twitter share gplus share more share

Also just had the idea.. but both adsense code in the same DIV.
david5000 is offline  
Unread 30th Aug 2011, 11:03 AM   #7
Active Warrior
 
Join Date: 2010
Posts: 99
Thanks: 10
Thanked 15 Times in 15 Posts
Default
Re: What is the code to do this???
Share on: 
fb share twitter share gplus share more share

Originally Posted by jefftardif View Post

<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.

Your online store for Trendy Printed T shirts
vinug is offline  
Unread 1st Sep 2011, 02:12 PM   #8
Active Warrior
War Room Member
 
Join Date: 2010
Posts: 35
Thanks: 33
Thanked 4 Times in 4 Posts
Default
Re: What is the code to do this???
Share on: 
fb share twitter share gplus share more share

Originally Posted by vinug View Post

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

jefftardif is offline  
Unread 1st Sep 2011, 02:51 PM   #9
Warrior Member
 
NickBhakta's Avatar
 
Join Date: 2011
Location: US
Posts: 19
Thanks: 0
Thanked 2 Times in 2 Posts
Default
Re: What is the code to do this???
Share on: 
fb share twitter share gplus share more share

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
NickBhakta is offline  
Closed Thread


Bookmarks

Tags
code


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




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