Author Topic: Center all ads (in add mod)  (Read 1585 times)

0 Members and 1 Guest are viewing this topic.

Offline cecilgoode

  • Anyone...Anywhere...
  • Sr. Member
  • *
  • Posts: 298
  • Karma: 7
  • Gender: Male
    • OneNightAnywhere
  • SMF Version: 1.5&2.0
Center all ads (in add mod)
« on: March 13, 2008, 07:44:06 PM »
Does anyone know how to do this...Like for banners
« Last Edit: March 14, 2008, 01:10:40 AM by bigguy »
Need Help?
onenightanywhere.com/Forum

Anyone...Anywhere...

Offline bigguy

  • Site Owner
  • Administrator
  • *
  • Posts: 13215
  • Karma: 269
  • Gender: Male
  • Get'r Done
    • P.C. Tweakr
  • SMF Version: 2.0 Gold
Re: Center all ads (in add mod)
« Reply #1 on: March 13, 2008, 08:14:21 PM »
Either one of two ways:

1.)

:
<center>ad_code</center>
2.)

:
<div align=center>ad_code</div>

Offline cecilgoode

  • Anyone...Anywhere...
  • Sr. Member
  • *
  • Posts: 298
  • Karma: 7
  • Gender: Male
    • OneNightAnywhere
  • SMF Version: 1.5&2.0
Re: Center all ads (in add mod)
« Reply #2 on: March 14, 2008, 12:13:45 AM »
Thank You
Need Help?
onenightanywhere.com/Forum

Anyone...Anywhere...

Offline bigguy

  • Site Owner
  • Administrator
  • *
  • Posts: 13215
  • Karma: 269
  • Gender: Male
  • Get'r Done
    • P.C. Tweakr
  • SMF Version: 2.0 Gold
Re: Center all ads (in add mod)
« Reply #3 on: March 14, 2008, 01:10:58 AM »
Not a problem. :)

Offline Urbanite

  • New Member
  • *
  • Posts: 29
  • Karma: 11
  • Gender: Male
  • .. lifes just like that !
  • SMF Version: 1.1.8
Re: Center all ads (in add mod)
« Reply #4 on: September 12, 2008, 01:03:58 PM »
OK if I can just add my question to this one, what if I want to have maybe 3 or 4 smaller adds next to each other in a row across the page, still centered, but with a few pixels spacing between them, whats the necessary code then anyone?

Offline bigguy

  • Site Owner
  • Administrator
  • *
  • Posts: 13215
  • Karma: 269
  • Gender: Male
  • Get'r Done
    • P.C. Tweakr
  • SMF Version: 2.0 Gold
Re: Center all ads (in add mod)
« Reply #5 on: September 12, 2008, 03:28:16 PM »
I think you would have to use a table for that possibly.

Offline Bluto

  • Hero Member
  • *
  • Posts: 355
  • Karma: 556
    • Bluto's Hosting
  • SMF Version: 1.1.9
Re: Center all ads (in add mod)
« Reply #6 on: September 12, 2008, 04:20:38 PM »
I have 2 game servers with images in 1 block. I used this:
:
<p align="top">   </p>
<center>
<table width="75%" cellspacing="2" cellpadding="2" border="0">
    <tbody>
        <tr>
Then enter your code for each ad and close the tags at the end like this.
:
  </tr>
    </tbody>
</table>
</center>
<p>&nbsp;</p>
Play around with cell spacing and cell padding until you get it where you want it.
Someone with more code smarts please check me on this. :)
Oh, and put it in a script block.
 

Offline Smoky

  • who, me?
  • Guru
  • *
  • Posts: 3980
  • Karma: 1450
  • Gender: Female
  • It's all in your HEAD!
    • HangOutSpot
  • SMF Version: 2.0 ??
Re: Center all ads (in add mod)
« Reply #7 on: September 12, 2008, 07:31:56 PM »
looks fine to me, but then my eyes are swimming in code right now..  ;)
Oh wow, guess who dropped by! Im still on secondlife.. but will respond to im's *waves

Offline Urbanite

  • New Member
  • *
  • Posts: 29
  • Karma: 11
  • Gender: Male
  • .. lifes just like that !
  • SMF Version: 1.1.8
Re: Center all ads (in add mod)
« Reply #8 on: September 15, 2008, 10:18:22 AM »
Thanks for this guys, I dont have the time to check it out at the moment, I'll come back to you... as they say..
 
 
 
oops... and Smoky
 
 
« Last Edit: September 15, 2008, 10:23:18 AM by Urbanite »

Offline cecilgoode

  • Anyone...Anywhere...
  • Sr. Member
  • *
  • Posts: 298
  • Karma: 7
  • Gender: Male
    • OneNightAnywhere
  • SMF Version: 1.5&2.0
Re: Center all ads (in add mod)
« Reply #9 on: September 15, 2008, 12:07:58 PM »
looks good guys, nice job...Thanks  :dnc
Need Help?
onenightanywhere.com/Forum

Anyone...Anywhere...

Offline Bluto

  • Hero Member
  • *
  • Posts: 355
  • Karma: 556
    • Bluto's Hosting
  • SMF Version: 1.1.9
Re: Center all ads (in add mod)
« Reply #10 on: September 15, 2008, 01:26:03 PM »
Wow...I did something right !! Hoowah

Offline Smoky

  • who, me?
  • Guru
  • *
  • Posts: 3980
  • Karma: 1450
  • Gender: Female
  • It's all in your HEAD!
    • HangOutSpot
  • SMF Version: 2.0 ??
Re: Center all ads (in add mod)
« Reply #11 on: September 15, 2008, 02:07:48 PM »
* Smoky sits and laughs.. passes the plate of burgers and snatches a french fry from BigGuy :dnc

hasnt noticed Bluto blundering yet!!  :vic
Oh wow, guess who dropped by! Im still on secondlife.. but will respond to im's *waves