#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2013
    Posts
    1
    Rep Power
    0

    How can I change space between Heading and Body?


    I have heading and body(table). I want to decrease the white space (distance) between heading and the table. Any help would be appreciated
    Last edited by ktmrocks; June 24th, 2013 at 11:43 PM. Reason: adding description
  2. #2
  3. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2012
    Posts
    8
    Rep Power
    0
    What do you have in the heading? Is it text or an image (or both)? If text, you may want to apply a line-height style to the text

    Code:
    #mytext {
    font-size:12px;
    line-height:13px; /// or in ems line-height:1 em
    }
    
    <td cellpadding="0" cellspacing="0" id="mytext">hello world</td>
    You may also want to explore padding and or margin ...
    Code:
    #mycell {
    padding:0;
    margin:0;
    }
    <td cellpadding="0" cellspacing="0"  id="mycell">hello world</td>

IMN logo majestic logo threadwatch logo seochat tools logo