TinyPortal

Development => Support => Topic started by: Avery on December 26, 2008, 03:07:32 AM

Title: Center Blocks
Post by: Avery on December 26, 2008, 03:07:32 AM
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?
Title: Re: Center Blocks
Post by: IchBin on December 26, 2008, 04:14:06 AM
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">
Title: Re: Center Blocks
Post by: Avery on December 26, 2008, 11:23:13 AM
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
Title: Re: Center Blocks
Post by: Zetan on December 26, 2008, 12:39:05 PM
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.
Title: Re: Center Blocks
Post by: Avery on December 26, 2008, 12:48:03 PM
Thanks guys!


EDIT: It doesn't seem to be working?  :o
Title: Re: Center Blocks
Post by: Zetan on December 26, 2008, 12:48:36 PM
You're welcome, did it work?
Title: Re: Center Blocks
Post by: Avery on December 26, 2008, 12:53:13 PM
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.
Title: Re: Center Blocks
Post by: Zetan on December 26, 2008, 12:56:08 PM
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.
Title: Re: Center Blocks
Post by: Avery on December 26, 2008, 12:59:27 PM
Ahh thanks Zetan.

It appears to be the block above that was the problem.

Thanks man :D
Title: Re: Center Blocks
Post by: Zetan on December 26, 2008, 01:01:18 PM
Thats cool  :)