Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 17 Feb 2016, 18:29
Aros12 Aros12 is offline
 
Join Date: Jan 2016
How Do I Center my Ad?

I've created an Ad Module towards the top of the main page at: www.hobbysquawk.com that I can't seem to get it to center justify. It defaults to left align...I'm hoping this is an easy fix I am overlooking...

Here's the HTML code in the ad module:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Here's a screen shot...Any help would be appreciated!
Attached Images
File Type: jpg 1.jpg (64.7 KB, 13 views)
Reply With Quote
  #2  
Old 17 Feb 2016, 18:34
Aros12 Aros12 is offline
 
Join Date: Jan 2016
Here's what I am looking for the end result to be...Note the margin at the top as well...I would like some space between the light grey top border and the ad itself, while being center aligned.
Attached Images
File Type: jpg 1.jpg (66.4 KB, 5 views)
Reply With Quote
  #3  
Old 17 Feb 2016, 18:40
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Real name: Mark
Try adding the following to the template "additional_css.css":


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

__________________
Former vBulletin.org Staff Member



Support for my products (as well as updates/new product publishing) has been moved to MHB - vBulletin Products and TAZ - Add-ons
Reply With Quote
  #4  
Old 17 Feb 2016, 18:47
Aros12 Aros12 is offline
 
Join Date: Jan 2016
Thanks Mark! That worked!

Any idea on a top margin? Thanks again!
Reply With Quote
  #5  
Old 17 Feb 2016, 18:57
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Real name: Mark
Originally Posted by Aros12 View Post
Thanks Mark! That worked!

Any idea on a top margin? Thanks again!
Edit the CSS selector I posted to now read:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

And then you can tweak the "1em" value to get it exactly as you want. For example, if you wanted to double it, then put "2em" instead, or if you wanted to halve it, put "0.5em".
__________________
Former vBulletin.org Staff Member



Support for my products (as well as updates/new product publishing) has been moved to MHB - vBulletin Products and TAZ - Add-ons
Reply With Quote
  #6  
Old 17 Feb 2016, 19:04
Aros12 Aros12 is offline
 
Join Date: Jan 2016
God bless all you CSS gurus! Thanks man, that's just what I needed!

Now since I am striking gold, I thought I would press my luck and see if you know how to make the banners rotational. Right now if I add more than one banner to the ad module, they stack one on top of the other. NOT the desired effect, lol. Is there code that allows me to put multiple banners in the ad module, rank them and have those simply rotate on page refresh?
Reply With Quote
  #7  
Old 17 Feb 2016, 19:13
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Real name: Mark
Originally Posted by Aros12 View Post
God bless all you CSS gurus! Thanks man, that's just what I needed!

Now since I am striking gold, I thought I would press my luck and see if you know how to make the banners rotational. Right now if I add more than one banner to the ad module, they stack one on top of the other. NOT the desired effect, lol. Is there code that allows me to put multiple banners in the ad module, rank them and have those simply rotate on page refresh?
That would likely take some coding. I would do a search here to see if there are any products uploaded to allow rotation of ads. If not, then I would suggest posting a request >>here<< and see if any vB 5.x coders can help you out.
__________________
Former vBulletin.org Staff Member



Support for my products (as well as updates/new product publishing) has been moved to MHB - vBulletin Products and TAZ - Add-ons
Reply With Quote
  #8  
Old 17 Feb 2016, 19:27
Aros12 Aros12 is offline
 
Join Date: Jan 2016
Awesome, thanks again!
Reply With Quote
  #9  
Old 17 Feb 2016, 22:35
shimei shimei is offline
 
Join Date: Feb 2015
Really like your logo and forum styling Aros12. Keep up the great work!

Shim
Reply With Quote
  #10  
Old 03 Mar 2016, 12:52
webmastersun's Avatar
webmastersun webmastersun is offline
 
Join Date: Oct 2013
I though your forum was vB4


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Not ever used this code to align center an image

But seem The OP's question is answered.
__________________
The best webmaster forum & internet marketing forum for webmasters and internet marketers.
Reply With Quote
  #11  
Old 04 Mar 2016, 23:30
Aros12 Aros12 is offline
 
Join Date: Jan 2016
Talking

Originally Posted by shimei View Post
Really like your logo and forum styling Aros12. Keep up the great work!

Shim
Thank you!
Reply With Quote
Reply

Similar Threads
Thread Thread Starter Forum Replies Last Post
[RELEASE vB 2.0] MSN Message Center like available on http://www.msn.com Christian vBulletin 2.x Full Releases 104 22 May 2002 05:20



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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


New To Site? Need Help?

All times are GMT. The time now is 06:31.

Layout Options | Width: Wide Color: