Advertise Here

  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to align an ad to the center in wordpress?
#1
Advertise Here
Hello. I need some help. I have an affiliate ad that I have added to my wordpress blog, but can't get it to align to the center.

How do you go about doing that? I've tried and tried and can't seem to get it centered.

Thanks
Reply
#2
To align an ad to the center in wordpress template you need to add the below code before and after the ad code.

Add this one before. ad code.
Code:
<div align=center>

Add this one after the ad code.

Code:
</div>

It would look like this.
Code:
<div align=center>your ad code here.</div>

That should center your ad.

Any more help, just ask. Cool

Chad
Reply
#3
Thanks Chad. It worked. Cool
Reply
#4
Something like this should works, even if it's kinda dirty:
<div style="text-align:center;">
<!-- Your last fm code here -->
</div>
Even dirtier:`
<center>
<!-- Your last fm code here -->
</center>`
Reply
#5
Good to come here as I was able to find two ways of making same thing, I was not thinking of this center tag.
Reply
#6
(07-11-2012, 11:16 AM)chad Wrote: To align an ad to the center in wordpress template you need to add the below code before and after the ad code.

Add this one before. ad code.
Code:
<div align=center>

Add this one after the ad code.

Code:
</div>

It would look like this.
Code:
<div align=center>your ad code here.</div>

That should center your ad.

Any more help, just ask. Cool

Chad
Thank you im finding this. Thank you very much
Reply
#7
<div align=center>your code</div> or
<div style="margin: 0 auto;">your code</div>
Reply
#8
I tried and it worked, thanks chad shared^^
Do you like facebook marketing - FB Group Marketer
Reply
#9
Thanks Chad. It worked
Reply
#10
Thank Chad, you are so good
Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  How to center an ad in mybb forum template? gman22 9 11,178 06-27-2016, 07:47 AM
Last Post: roycareyou
  What are the steps you can take if your WordPress file is hacked? beingchinmay 3 218 05-26-2016, 09:37 AM
Last Post: tonybrain2016
  How to merge two Wordpress sites sonth321 3 88 05-26-2016, 07:24 AM
Last Post: pahichu
  What are the template tags in WordPress? beingchinmay 1 206 02-01-2016, 02:55 AM
Last Post: Smith-K

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Users browsing this thread:
1 Guest(s)


  Theme © 2016 iAndrew  
Webmasterbabble.com, © 2012-2016 .