Jump to content

little problem.


seany123

Recommended Posts

Just so everyone knows i dont know css, i use dreamweaver to do my backgrounds, borders etc.

 

But on a part of my page i have a bit thats got white background... ive tried plenty of times to get rid of it but i dunno what else to do...

 

problem.jpg

 

this is the code to that page...

 

<?php
include("lib.php");
include("autocron.php");
define("PAGENAME", "Home");
$player = check_user($secret_key, $db);
$str = $player->strength;
$vit = $player->vitality;
$agi = $player->agility;
$totallvl = $str + $vit + $agi;
$name = $profile->usermame;
include("templates/private_header.php");
?>
<?php
if ($player->rm <= 0) {
?><style type="text/css">
<!--
body,td,th {
color: #FFFFFF;
}
body {
background-color: #000000;
}
a:link {
color: #FF0000;
}
a:visited {
color: #FF0000;
}
a:hover {
color: #666666;
}
a:active {
color: #FF0000;
}
.style2 {color: #FFFFFF}
.style5 {}
.style7 {font-weight: bold}
.style8 {color: #000000}
-->
</style>
<table width="650" border="1" cellpadding="0" cellspacing="0" bordercolor="#FF0000" bgcolor="#000000">
  <tr>
    <td align="center" class="style5"><strong>Upgrade</strong></td>
  </tr>
</table>
<table width="597" height="168" border="0" bordercolor="#000000" bgcolor="#333333">
  <tr>
    <td height="23" colspan="2"><div align="center"><strong>You are not a Respected Mobster!!!</strong></div></td>
  </tr>
  <tr>
    <td width="355" height="137"><p> </p>
      <p>By not being a respected mobster you are missing out on tons of advantages and losing out on the competition!<br>
      These are just a few advantages you will receive when becoming a Respected member:</p></td>
    <td width="226"><div align="left">
      <ul>
        <li>$100,000.</li>
        <li>150 Points.</li>
        <li>Doubled bank interest.</li>
        <li>X2 Energy, Nerve and </li>
        <li>Awake refill speed.</li>
        <li>Fastest Support.</li>
        <li>Access to ALL new updates.</li>
      </ul>
    </div></td>
  </tr>
</table>
<?php
}
?>
<style type="text/css">
<!--
body {
background-color: #000000;
}
.style4 {color: #FFFFFF; font-weight: bold; }
a:link {
text-decoration: none;
}
a:visited {
text-decoration: none;
}
a:hover {
text-decoration: none;
}
a:active {
}
.style5 {color: #FFFFFF}
.style7 {background-color: #000000}
-->
</style>
<table width="650" border="1" cellpadding="0" cellspacing="0" bordercolor="#FF0000" bgcolor="#000000">
  <tr>
    <td align="center" class="style5"><strong>Home</strong></td>
  </tr>
</table>
<table width="622" border="0" cellpadding="0" cellspacing="0" bgcolor="#000000">
  <tr>
    <td height="10" colspan="13" bgcolor="#000000" class="style5 style2"> </td>
  </tr>
  <tr>
    <td width="10" bgcolor="#000000" class="style5 style2"> </td>
    <td width="80" bgcolor="#000000" class="style2">Username:</td>
    <td width="10" bgcolor="#000000" class="style5 style2"> </td>
    <td width="106" bgcolor="#000000" class="style5"><strong>
      <?=$player->username?>
    </strong></td>
    <td width="10" bgcolor="#000000" class="style5 style2"> </td>
    <td width="80" bgcolor="#000000" class="style2"> </td>
    <td width="10" bgcolor="#000000" class="style5 style2"> </td>
    <td width="106" bgcolor="#000000" class="style5">Hp</td>
    <td width="10" bgcolor="#000000" class="style5 style2"> </td>
    <td width="99" bgcolor="#000000" class="style5 style2"><strong>
      <?=$player->hp?>
    </strong>/ <strong>
    <?=$player->maxhp?>
    </strong></td>
    <td width="9" bgcolor="#000000" class="style5 style2"> </td>
    <td width="88" bgcolor="#000000" class="style5 style2"> </td>
    <td width="4" bgcolor="#000000" class="style5 style2"> </td>
  </tr>
  <tr>
    <td height="10" colspan="13" bgcolor="#000000" class="style5 style2"> </td>
  </tr>
  <tr>
    <td width="10" height="20" bgcolor="#000000" class="style5 style2"> </td>
    <td width="80" bgcolor="#000000" class="style2">Level:</td>
    <td width="10" bgcolor="#000000" class="style5 style2"> </td>
    <td width="106" bgcolor="#000000" class="style5"><strong>
      <?=$player->level?></strong></td>
    <td width="10" bgcolor="#000000" class="style5 style2"> </td>
    <td width="80" bgcolor="#000000" class="style2"> </td>
    <td width="10" bgcolor="#000000" class="style5 style2"> </td>
    <td width="106" bgcolor="#000000" class="style5 style2">Energy</td>
    <td width="10" bgcolor="#000000" class="style5 style2"> </td>
    <td width="99" bgcolor="#000000" class="style5 style2"><strong>
      <?=$player->energy?>
    </strong>/ <strong>
    <?=$player->maxenergy?>
    </strong></td>
    <td width="9" bgcolor="#000000" class="style5 style2"> </td>
    <td width="88" bgcolor="#000000" class="style5 style2"> </td>
    <td width="4" bgcolor="#000000" class="style5 style2"> </td>
  </tr>
</table>
<table width="622" border="0" cellpadding="0" cellspacing="0" bgcolor="#000000">
  <tr>
    <td height="10" colspan="13" bgcolor="#000000" class="style5 style2"> </td>
  </tr>
  <tr>
    <td width="10" bgcolor="#000000" class="style5 style2"> </td>
    <td width="80" bgcolor="#000000" class="style2">Money:</td>
    <td width="10" bgcolor="#000000" class="style5 style2"> </td>
    <td width="106" bgcolor="#000000" class="style5"><strong>
      $<?=$player->money?>
    </strong></td>
    <td width="10" bgcolor="#000000" class="style5 style2"> </td>
    <td width="80" bgcolor="#000000" class="style2"> </td>
    <td width="10" bgcolor="#000000" class="style5 style2"> </td>
    <td width="106" bgcolor="#000000" class="style5">Awake</td>
    <td width="10" bgcolor="#000000" class="style5 style2"> </td>
    <td width="99" bgcolor="#000000" class="style5 style2"><strong>
      <?=$player->awake?>
    </strong>/ <strong>
    <?=$player->maxawake?>
    </strong></td>
    <td width="12" bgcolor="#000000" class="style5 style2"> </td>
    <td width="85" bgcolor="#000000" class="style5 style2"> </td>
    <td width="4" bgcolor="#000000" class="style5 style2"> </td>
  </tr>
  <tr>
    <td height="10" colspan="13" bgcolor="#000000" class="style5 style2"> </td>
  </tr>
  <tr>
    <td width="10" height="20" bgcolor="#000000" class="style5 style2"> </td>
    <td width="80" bgcolor="#000000" class="style2">Bank:</td>
    <td width="10" bgcolor="#000000" class="style5 style2"> </td>
    <td width="106" bgcolor="#000000" class="style5"><strong>
      $<?=$player->bank?>
    </strong></td>
    <td width="10" bgcolor="#000000" class="style5 style2"> </td>
    <td width="80" bgcolor="#000000" class="style2"> </td>
    <td width="10" bgcolor="#000000" class="style5 style2"> </td>
    <td width="106" bgcolor="#000000" class="style5 style2">Nerve</td>
    <td width="10" bgcolor="#000000" class="style5 style2"> </td>
    <td width="99" bgcolor="#000000" class="style5 style2"><strong>
      <?=$player->maxnerve?>
    </strong></td>
    <td width="12" bgcolor="#000000" class="style5 style2"> </td>
    <td width="85" bgcolor="#000000" class="style5 style2"> </td>
    <td width="4" bgcolor="#000000" class="style5 style2"> </td>
  </tr>
</table>
<table width="622" border="0" cellpadding="0" cellspacing="0" bgcolor="#000000">
  <tr>
    <td height="10" colspan="13" bgcolor="#000000" class="style5 style2"> </td>
  </tr>
  <tr>
    <td width="10" bgcolor="#000000" class="style5 style2"> </td>
    <td width="80" bgcolor="#000000" class="style2">Points:</td>
    <td width="10" bgcolor="#000000" class="style5 style2"> </td>
    <td width="106" bgcolor="#000000" class="style5"><strong><i>
      <?=$player->points?>
    </i></strong></td>
    <td width="10" bgcolor="#000000" class="style5 style2"> </td>
    <td width="80" bgcolor="#000000" class="style2"> </td>
    <td width="10" bgcolor="#000000" class="style5 style2"> </td>
    <td width="106" bgcolor="#000000" class="style5"> </td>
    <td width="10" bgcolor="#000000" class="style5 style2"> </td>
    <td width="80" bgcolor="#000000" class="style5 style2"> </td>
    <td width="10" bgcolor="#000000" class="style5 style2"> </td>
    <td width="106" bgcolor="#000000" class="style5 style2"> </td>
    <td width="10" bgcolor="#000000" class="style5 style2"> </td>
  </tr>
  <tr>
    <td height="10" colspan="13" bgcolor="#000000" class="style5 style2"> </td>
  </tr>
  <tr>
    <td width="10" height="20" bgcolor="#000000" class="style5 style8"> </td>
    <td width="80" bordercolor="#000000" bgcolor="#000000" class="style8"><?php
$percent = intval(($player->exp / $player->maxexp) * 100);
?> EXP: </td>
    <td width="10" bordercolor="#000000" bgcolor="#000000" class="style5 style2"> </td>
    <td width="106" bordercolor="#000000" bgcolor="#000000" class="style2"><span class="left-section">
      <?=$player->exp?>
    </span>/ <span class="left-section">
    <?=$player->maxexp?>
    (
    <?=$percent?>
    </span>%)</td>
    <td width="10" bordercolor="#000000" bgcolor="#000000" class="style5 style8"> </td>
    <td width="80" bordercolor="#000000" bgcolor="#000000" class="style2"> </td>
    <td width="10" bordercolor="#000000" bgcolor="#000000" class="style5 style2"> </td>
    <td width="106" bgcolor="#000000" class="style5 style2"> </td>
    <td width="10" bgcolor="#000000" class="style5 style2"> </td>
    <td width="80" bgcolor="#000000" class="style5 style2"> </td>
    <td width="10" bgcolor="#000000" class="style5 style2"> </td>
    <td width="106" bgcolor="#000000" class="style5 style2"> </td>
    <td width="10" bgcolor="#000000" class="style5 style2"> </td>
  </tr>
</table>
<br>
<br>
<br>
<br>
<p class="style5"><br />
</p>
<table width="650" border="1" cellpadding="0" cellspacing="0" bordercolor="#FF0000" bgcolor="#000000">
  <tr>
    <td align="center" class="style5"><span class="style7"><strong>Attributes</strong></span></td>
  </tr>
</table>
<table width="628" border="0" cellpadding="0" cellspacing="0" bgcolor="#000000">
  <tr>
    <td height="10" colspan="13" class="style5 style2"> </td>
  </tr>
  <tr>
    <td width="10" class="style5 style2"> </td>
    <td width="80" class="style2">Strength</td>
    <td width="10" class="style5 style2"> </td>
    <td width="106" class="style5"><span class="style7 style2">
      <?=$player->strength?>
    </span></td>
    <td width="10" class="style5 style2"> </td>
    <td width="80" class="style2">Defense</td>
    <td width="10" class="style5 style2"> </td>
    <td width="106" class="style5"><span class="style7 style2">
      <?=$player->agility?>
    </span></td>
    <td width="10" class="style5 style2"> </td>
    <td width="80" class="style5 style2"> </td>
    <td width="10" class="style5 style2"> </td>
    <td width="106" class="style5 style2"> </td>
    <td width="10" class="style5 style2"> </td>
  </tr>
  <tr>
    <td height="10" colspan="13" class="style5 style2"> </td>
  </tr>
  <tr>
    <td width="10" height="20" class="style5 style2"> </td>
    <td width="80" class="style2">Vitality</td>
    <td width="10" class="style5 style2"> </td>
    <td width="106" class="style5"><span class="style7 style2">
      <?=$player->vitality?>
    </span></td>
    <td width="10" class="style5 style2"> </td>
    <td width="80" class="style2">Total</td>
    <td width="10" class="style5 style2"> </td>
    <td width="106" class="style5 style2"><?=$totallvl?><br /></td>
    <td width="10" class="style5 style2"> </td>
    <td width="80" class="style5 style2"> </td>
    <td width="10" class="style5 style2"> </td>
    <td width="106" class="style5 style2"> </td>
    <td width="10" class="style5 style2"> </td>
  </tr>
  <tr>
    <td height="10" colspan="13" class="style5 style2"></td>
  </tr>
</table>
<p class="style5"><br />
  
  <!-- Here you can put news updates or whatever. A News System will be coming next version! -->
  <? xpanel('news'); ?>
  
  <br />
  <br />
  <? xpanel('xpanel_link'); ?>
</p>
<span class="style5">
<!-- Yes, you may remove that link if you wish  -->
</span>

Link to comment
Share on other sites

<td width="106" bordercolor="#000000" bgcolor="#000000" class="style2"><span class="left-section">

You have a span with a class "left-section" and a td with a class "style2." On top of that, you are declaring other styling. What is in those classes?

Link to comment
Share on other sites

I feel redundant and trolling when I keep saying this but you people with questions need to give us links because we can't see whats in those include files man. If you give us a link then we can use firebug on it to more quickly diagnose your problem

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.