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?
     
    shirsc2, Nov 25, 2005 IP
  2. J.D.

    J.D. Peon

    Messages:
    1,198
    Likes Received:
    65
    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:
    27
    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
    Karen May Jones and mopacfan like 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
  7. bubulink

    bubulink Well-Known Member

    Messages:
    93
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    110
    #7
    You may try giving the <br /> a "line-height" property in CSS. Read here: developer.mozilla.org/en-US/docs/Web/CSS/line-height

    Edit: Forget it, I just found the same solution further up. Rookie mistake - replying before reading all the entries. Sorry, won't happen again :)
     
    Last edited: Nov 7, 2018
    bubulink, Nov 7, 2018 IP
  8. pawon

    pawon Member

    Messages:
    11
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    36
    #8
    The break tag styling will work. But to be honest, it would be better to work with DIVs and use margin and padding for the required spacing.
     
    pawon, Nov 12, 2018 IP