Sign Up! Login: Password: New User? Forgot? Support
Top Mods!
Wowhead Search
by sonofsamedi
Digital Clock
by Wolfar15
Admin Forums
Welcome to the GuildPortal Help Community! These forums are for admin-to-admin help.
Available Forums
Forums : Pimp My Site! > Table and unwanted spaces before the table...
Draylor (New Admin) 7/12/2009 7:50 PM EST : Table and unwanted spaces before the table...
Draylor
Posts: 424
Fingers of Fury!

Mottie,
    Ok - I've stared at this for hours and attempted to look at why this happens, but can not for the life of me figure this out ... we have a Template for our Calendar that the Raid Leader uses to figure out grouping etc ... but the Table we use is allowing for alot of extra spaces before the table (Which is like 2-3 inches of blank space before the table). I can't figure out what is wrong with it ... I have all tags 'closed' that were opened. (I know this isn't the prettiest table - but it works for us) - You can see maybe what I am talking about if you click here also: http://totalcarnage.guildportal.com/Guild.aspx?GuildID=231248&TabID=1947545&EventToView=2760342&ReturnView=Monthly 

<table border="4" cellspacing="0" bordercolor="#870108" cellpadding="0" width="95%" align="center">
    <tbody>
        <tr>
            <td style="background-color: #8a672d;">
            <p style="text-align: center;"><strong><span style="font-size: 13px;">MT Group</span></strong></p>
            </td>
            <td style="background-color: #8a672d;">
            <p style="text-align: center;"><strong><span style="font-size: 13px;">MA Group </span></strong></p>
            </td>
            <td style="background-color: #8a672d;">
            <p style="text-align: center;"><strong><span style="font-size: 13px;">Mage Group</span></strong></p>
            </td>
            <td style="background-color: #8a672d;">
            <p style="text-align: center;"><strong><span style="font-size: 13px;">Scout Group </span></strong></p>
            </td>
        </tr>
        <tr>
            <td><span style="font-size: 13px;"><strong>1 </strong></span></td>
            <td><span style="font-size: 13px;"><strong>1</strong></span></td>
            <td><span style="font-size: 13px;"><strong>1 </strong></span></td>
            <td><span style="font-size: 13px;"><strong>1</strong></span></td>
        </tr>
        <tr>
            <td><span style="font-size: 13px;"><strong>2 </strong></span></td>
            <td><span style="font-size: 13px;"><strong>2</strong></span></td>
            <td><span style="font-size: 13px;"><strong>2 </strong></span></td>
            <td><span style="font-size: 13px;"><strong>2</strong></span></td>
        </tr>
        <tr>
            <td><span style="font-size: 13px;"><strong>3 </strong></span></td>
            <td><span style="font-size: 13px;"><strong>3</strong></span></td>
            <td><span style="font-size: 13px;"><strong>3 </strong></span></td>
            <td><span style="font-size: 13px;"><strong>3</strong></span></td>
        </tr>
        <tr>
            <td><span style="font-size: 13px;"><strong>4 </strong></span></td>
            <td><span style="font-size: 13px;"><strong>4</strong></span></td>
            <td><span style="font-size: 13px;"><strong>4 </strong></span></td>
            <td><span style="font-size: 13px;"><strong>4</strong></span></td>
        </tr>
        <tr>
            <td><span style="font-size: 13px;"><strong>5 </strong></span></td>
            <td><span style="font-size: 13px;"><strong>5</strong></span></td>
            <td><span style="font-size: 13px;"><strong>5 </strong></span></td>
            <td><span style="font-size: 13px;"><strong>5</strong></span></td>
        </tr>
        <tr>
            <td><span style="font-size: 13px;"><strong>6 </strong></span></td>
            <td><span style="font-size: 13px;"><strong>6</strong></span></td>
            <td><span style="font-size: 13px;"><strong>6 </strong></span></td>
            <td><span style="font-size: 13px;"><strong>6</strong></span></td>
        </tr>
    </tbody>
</table>
<p style="text-align: center;"><strong><span style="color: #870108; font-size: 16px;">You are <span style="text-decoration: underline;">REQUIRED</span> to have all needed items on your toon prior to showing up for the Raid. </span><br />
<span style="color: #870108; font-size: 16px;">These include: </span><span style="color: #8a672d; font-size: 16px;">Potions , Remedies , Diety Spells &amp; City Merchant Items  </span><span style="color: #870108; font-size: 16px;"> - also fully </span>  <span style="color: #8a672d; font-size: 16px;">Mended &amp;  Coin  </span><span style="color: #870108; font-size: 16px;">for a mender bot.</span></strong> </p>


~Draylor
TopBottom

Eph (MVP) 7/12/2009 8:24 PM EST : RE: Table and unwanted spaces before the table...
GuildPortal MVP
Eph
Posts: 596
Zomgawsh Poster

Not the mighty Mottie, but I found a way to make it look right.

Looking at the code after the table is saved, for some reason the editor adds a lot of <br/> lines before the table.

A way I found to trick the editor from not doing this is to add a <br> at the begining, and end of the table. Like this:

<br><table border="4" cellspacing="0" bordercolor="#870108" cellpadding="0" width="95%" align="center">
    <tbody>
        <tr>
            <td style="background-color: #8a672d;">
            <p style="text-align: center;"><strong><spanstyle="font-size: 13px;">MTGroup</span></strong></p>
            </td>
            <td style="background-color: #8a672d;">
            <p style="text-align: center;"><strong><spanstyle="font-size: 13px;">MA Group</span></strong></p>
            </td>
            <td style="background-color: #8a672d;">
            <p style="text-align: center;"><strong><spanstyle="font-size: 13px;">MageGroup</span></strong></p>
            </td>
            <td style="background-color: #8a672d;">
            <p style="text-align: center;"><strong><spanstyle="font-size: 13px;">Scout Group</span></strong></p>
            </td>
        </tr>
        <tr>
            <td><span style="font-size: 13px;"><strong>1 </strong></span></td>
            <td><span style="font-size: 13px;"><strong>1</strong></span></td>
            <td><span style="font-size: 13px;"><strong>1 </strong></span></td>
            <td><span style="font-size: 13px;"><strong>1</strong></span></td>
        </tr>
        <tr>
            <td><span style="font-size: 13px;"><strong>2 </strong></span></td>
            <td><span style="font-size: 13px;"><strong>2</strong></span></td>
            <td><span style="font-size: 13px;"><strong>2 </strong></span></td>
            <td><span style="font-size: 13px;"><strong>2</strong></span></td>
        </tr>
        <tr>
            <td><span style="font-size: 13px;"><strong>3 </strong></span></td>
            <td><span style="font-size: 13px;"><strong>3</strong></span></td>
            <td><span style="font-size: 13px;"><strong>3 </strong></span></td>
            <td><span style="font-size: 13px;"><strong>3</strong></span></td>
        </tr>
        <tr>
            <td><span style="font-size: 13px;"><strong>4 </strong></span></td>
            <td><span style="font-size: 13px;"><strong>4</strong></span></td>
            <td><span style="font-size: 13px;"><strong>4 </strong></span></td>
            <td><span style="font-size: 13px;"><strong>4</strong></span></td>
        </tr>
        <tr>
            <td><span style="font-size: 13px;"><strong>5 </strong></span></td>
            <td><span style="font-size: 13px;"><strong>5</strong></span></td>
            <td><span style="font-size: 13px;"><strong>5 </strong></span></td>
            <td><span style="font-size: 13px;"><strong>5</strong></span></td>
        </tr>
        <tr>
            <td><span style="font-size: 13px;"><strong>6 </strong></span></td>
            <td><span style="font-size: 13px;"><strong>6</strong></span></td>
            <td><span style="font-size: 13px;"><strong>6 </strong></span></td>
            <td><span style="font-size: 13px;"><strong>6</strong></span></td>
        </tr>
    </tbody>
</table>
<p style="text-align: center;"><strong><spanstyle="color: #870108; font-size: 16px;">You are <spanstyle="text-decoration: underline;">REQUIRED</span> to haveall needed items on your toon prior to showing up for the Raid.</span><br />
<span style="color: #870108; font-size: 16px;">These include:</span><span style="color: #8a672d; font-size:16px;">Potions , Remedies , Diety Spells &amp; City MerchantItems  </span><span style="color: #870108; font-size:16px;"> - also fully </span>  <span style="color: #8a672d;font-size: 16px;">Mended &amp;  Coin  </span><spanstyle="color: #870108; font-size: 16px;">for a menderbot.</span></strong> </p>
<br>

Note though, if you go in to edit the event, the editor will change these <br>'s to <br/>'s, and it will get the spaces again.
TopBottom

Mottie (MVP) 7/12/2009 8:58 PM EST : RE: Table and unwanted spaces before the table...
GuildPortal MVP
Mottie
Posts: 3884
Zomgawsh Poster

Hi Draylor!

LOL Eph would know better than me... I haven't messed with the calendar in a while so try what he's recommending. I do remember when I first started using GP, I had to put all my content on one line to make the formatting look right, but that was way before all the recent changes.
TopBottom

Admins Online
There are   members online.
So-and-so has logged on!
%title%
%message%