PDA

View Full Version : Need Help with HTML



whitedove
01-12-2007, 03:21 AM
I was just wondering if someone could help me with my Billboard Scroll script for the Vote Buttons for the other Topsites my topsite is listed on.

This is the code and it works fine:

<div id="contentwrapper">
<div id="billboard0" class="billcontent">
<center><font size=2><a href="http://fairy.top-site-list.com/vote74.html" target="new">Vote For Enchanted Hollow
at Dancing Fairies</a>
</font> <font size=1>Top List (http://www.top-site-list.com/)</font> </center></center>
</div>

I just need to know how to make my button <valign="center"> Can I even do it? I have tried just about everything! :?

In the Header part of the script I have this that can be edited:

<style type="text/css">

/*Modify attributes of #contentwrapper below as desired*/
#contentwrapper{
width: 200px;
height: 200px;
border: 3px dotted gold;
background-color: #000000;
padding: 5px;
}

.billcontent{
width: 100%;
display:block;
}

</style>

<script type="text/javascript">

I have tried to add <valign="center"> several different ways but to no avail...


You can see the Billboard here: http://enchantedhollow.gotop100.com/index.php (At the bottom of the list...)

Is there also a way to code it so all the buttons do not have to load in a single line first before it starts working? I plan on adding alot more and it seems to be taking quite awhile to load.

Thank you for any help! :)

Scott
01-12-2007, 06:08 AM
Have you tried changing this:

<div id="billboard0" class="billcontent">

to this:

<div align="center" id="billboard0" class="billcontent">

whitedove
01-12-2007, 07:49 AM
That didn't work either... :roll:

Thank you for trying though... :wink:

Scott
01-12-2007, 01:16 PM
The only other thing I can think of right now is to try changing this:

.billcontent{
width: 100%;
display:block;
}

to this:

.billcontent{
width: 100%;
text-align: center;
display:block;
}

Scott
01-12-2007, 01:19 PM
It looks centered to me now - did you rerank your list after making the change, or did you figure something else out?

whitedove
01-13-2007, 09:04 AM
Thank you Dave for helping me! That didn't work either... Yes, I "Apply Design" everytime - I need the content to vertically align. I did make the billboard a little smaller so it wasn't so noticable. I would like to have it in the center of the Billboard vertically as well as horizontally so I can have different size buttons in it. :wink:

Scott
01-14-2007, 12:09 AM
Oh, VERTICAL!

Sorry about that, I guess I'm blind.

Vertical alignment with css styles is a little different. One thing you could try is to set the height of the table it is in (which you have already done) and then play with the top margin until you get it centered. The problem with this is if you have more than one button inside, they won't all be aligned properly.

whitedove
01-14-2007, 01:14 AM
Thank You Dave...

I will play around with that and see how it works. :)

Thank You for your help!

Scott
01-14-2007, 07:57 PM
No problem ;)