1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

any way to make a smaller space than a <br> tag

Discussion in 'HTML & Website Design' started by shirsc2, Nov 25, 2005.

  1. #1
    is there a way to make a smaller space than using a break tag. If you go my site ( in sig), you'll see an adsense link unit up top. I'd like to move it up a little bit but as of now i can't figure out how. I'm using a <br> tag to get the space, which seems too much, and no <br> tag is not enough. Anyway to do this?
    SEMrush
     
    shirsc2, Nov 25, 2005 IP
    SEMrush
  2. J.D.

    J.D. Peon

    Messages:
    1,198
    Likes Received:
    63
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Remove <br> and add padding to that cell. For example:

    <td style="padding-top: 2px;">...</td>

    J.D.
     
    J.D., Nov 25, 2005 IP
  3. Skaidon

    Skaidon Peon

    Messages:
    74
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    You could replace the <br /> with a <div style="height:1px;font-size:1px;">&nbsp;</div> - editing the height to wwhatever you want it to be.
     
    Skaidon, Nov 27, 2005 IP
  4. LGRComp

    LGRComp Well-Known Member

    Messages:
    516
    Likes Received:
    26
    Best Answers:
    0
    Trophy Points:
    195
    #4
    You can also style a <br> tag. If you use something like <br style="line-height:0px;" /> your line break will be much smaller. I have used this to fix IE CSS errors.
     
    LGRComp, Nov 27, 2005 IP
    mopacfan likes this.
  5. shirsc2

    shirsc2 Peon

    Messages:
    439
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #5

    Thank you, this code worked great.
     
    shirsc2, Nov 28, 2005 IP
  6. FeelLikeANut

    FeelLikeANut Peon

    Messages:
    330
    Likes Received:
    19
    Best Answers:
    0
    Trophy Points:
    0
    #6
    If you can get it working, J.D.'s solution is probably the preferred method.
     
    FeelLikeANut, Nov 28, 2005 IP