d2jsp
Log InRegister
d2jsp Forums > Off-Topic > Computers & IT > Programming & Development > Noob Question.
Add Reply New Topic New Poll
Member
Posts: 37,788
Joined: Feb 9 2004
Gold: 3,204.46
Jun 20 2013 12:40pm
The below code has 2 columns of data, the right column appears fine.... yet the first column data has huge spaces between each line.... any ideas? I noticed if I load the code in my WAMP server... it appears fine... but if I run it on my site on Wordpress.... that's when I get the huge spacing. How do I fix this?



<table border="0" width="100%">
<tbody>
<tr>
<td style="padding-left: 25px; padding-right: 0px;" valign="top" align="left" width="300px" >
sample text<br />
sample text<br />
sample text<br />
sample text<br />
sample text<br />
sample text<br />
</td>
<td style="padding-left: 0px; padding-right: 0px;" valign="top" align="left" width="300px">
sample text<br />
sample text<br />
<p>: <u></u><br />
<a href="mailto"></a><br /></p>
</td>
</tr>
</tbody>
</table>

This post was edited by Lizar50 on Jun 20 2013 12:40pm
Member
Posts: 29,723
Joined: Jun 11 2007
Gold: 279.52
Jun 20 2013 02:49pm
dont use tables for non tabular data. and dont use break tags. holy shit where did u learn html?


CSS:
Code

<style type="text/css">
    .divs {
         width:300px;
         padding-left:25px;
          float:left;

#mailto {
font-weight:bold;
text-decoration:underline;
}
</style>


HTML
Code

<div class="divs">
<ul>
      <li>sample text</li>
      <li>sample text</li>
       <li>sample text</li>
       <li>sample text</li>
       <li>sample text</li>
 </ul>
</div>

<div class="divs">
<ul>
      <li>sample text</li>
      <li>sample text</li>
 </ul>
<a id="mailto" href="mailto.php">Mail</a>
</div>
</style>


not sure wtf your trying to do with the mailto a tag.
Member
Posts: 37,788
Joined: Feb 9 2004
Gold: 3,204.46
Jun 20 2013 04:44pm
Quote (AkuuZ @ Jun 20 2013 04:49pm)
dont use tables for non tabular data. and dont use break tags. holy shit where did u learn html?


CSS:
Code
<style type="text/css">
    .divs {
         width:300px;
         padding-left:25px;
          float:left;

#mailto {
font-weight:bold;
text-decoration:underline;
}
</style>


HTML
Code
<div class="divs">
<ul>
      <li>sample text</li>
      <li>sample text</li>
       <li>sample text</li>
       <li>sample text</li>
       <li>sample text</li>
 </ul>
</div>

<div class="divs">
<ul>
      <li>sample text</li>
      <li>sample text</li>
 </ul>
<a id="mailto" href="mailto.php">Mail</a>
</div>
</style>


not sure wtf your trying to do with the mailto a tag.


haha, i never formally learned html ! ty for help!

This post was edited by Lizar50 on Jun 20 2013 04:44pm
Go Back To Programming & Development Topic List
Add Reply New Topic New Poll