TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,973
  • Latest: NonStop
Stats
  • Total Posts: 196,224
  • Total Topics: 21,352
  • Online today: 633
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 162
  • Total: 162

Center Blocks

Started by Avery, December 26, 2008, 03:07:32 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Avery

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?

IchBin

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">

Avery

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

Zetan

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.

Avery

#4
Thanks guys!


EDIT: It doesn't seem to be working?  :o

Zetan

You're welcome, did it work?

Avery

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.

Zetan

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.

Avery

Ahh thanks Zetan.

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

Thanks man :D

Zetan


This website is proudly hosted on Crocweb Cloud Website Hosting.