Okay so at my website, http://averyxie.info
I have a center block that is a scriptbox and it has my bidvertiser ad.
But when I put the <CENTER> tags around it, nothing seems to happen.
Help please?
So how can we help? Would you mind providing the code you use so we can tell you what is happening? For your info the <center> tag is deprecated. You should use CSS to center something. For example:
<div style="text-align: center">
I have tried what you told me to do, but It seems not to be working.
<!-- Begin BidVertiser code -->
<SCRIPT LANGUAGE="JavaScript1.1" SRC="http://bdv.bidvertiser.com/BidVertiser.dbm?pid=74159&bid=173363" type="text/javascript"></SCRIPT>
<noscript><a href="http://www.bidvertiser.com/bdv/BidVertiser/bdv_advertiser.dbm">advertising</a></noscript>
<!-- End BidVertiser code -->
That is my code.
I have created a centerblock on my website called Ads, I want the ads to be centered in the block. The <center> tags do not work, and you mentioned something about
<div style="text-align: center">
How would i use the this type of code to center my ads? I'm still new to the editing part in SMF and all.
Thanks,
Avery
You now need to close that open Div tag, if you notice, the block now bleeds to bottom of the site, encompassing the forum layout.
<div style="text-align: center">
<!-- Begin BidVertiser code -->
<SCRIPT LANGUAGE="JavaScript1.1" SRC="http://bdv.bidvertiser.com/BidVertiser.dbm?pid=74159&bid=173363" type="text/javascript"></SCRIPT>
<noscript><a href="http://www.bidvertiser.com/bdv/BidVertiser/bdv_advertiser.dbm">advertising</a></noscript>
<!-- End BidVertiser code -->
</div>
Notice the closing < /div> tag, (no spaces).
I'd try also, just
<div align="center">
Code here
</div>
using the same closing div tag in the code above.
Thanks guys!
EDIT: It doesn't seem to be working? :o
You're welcome, did it work?
I have tried using what you just did, but It seems to stay on the left side?
I have tried both of the div tags you showed me.
I think the problem may lie in the block above, that looks to be causing the bleed, check for any open tags in that block and close it. There maybe a code aligned left.
QuoteMerry Christmas!
Avery Forums wishes you a Merry Christmas and a Happy New Year!
If it's not there, then it's in the template if you been messing with it, or the News.
Ahh thanks Zetan.
It appears to be the block above that was the problem.
Thanks man :D
Thats cool :)