Heading tags problem

Discussion in 'HTML & Website Design' started by cdx, Nov 10, 2005.

  1. #1
    Hi all!

    I have a question about heading tags...

    I have problems with those heading-tags. When I am putting them inside 'tr' I get like another "<BR>" after closing the tag.

    Example: http://www.rentinginparis.com/why_us.html

    How can I avoid it ?

    Thanks!

    Guy.
     
    cdx, Nov 10, 2005 IP
  2. Amsterdam

    Amsterdam Well-Known Member

    Messages:
    361
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    128
    #2
    I think the problem lies in your CSS. You have a class called 'maincontent' which specifies vertical-align: top;

    Perhaps you should try deleting this. You could also specify margin sizes for the h3 to alter the amount of space above and below your heading.

    T
     
    Amsterdam, Nov 10, 2005 IP
  3. Colleen

    Colleen Illustrious Member

    Messages:
    6,777
    Likes Received:
    725
    Best Answers:
    1
    Trophy Points:
    430
    #3
    Remove the heights, ie;

    <TR height="100%" >
    <TD class="maincontent" width="100%" height="100%" style=" padding:0,0,5,3">

    And can also do what Amsterdam suggested, ie;

    h1 {
    margin:0;
    padding:0;
    }
     
    Colleen, Nov 10, 2005 IP
  4. webdesign2005

    webdesign2005 Guest

    Messages:
    26
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Souuldn't the padding have what the 2 means? is it 2 em or 2 pixels?

    Usually a H1 has a default line height value and that could be set to something like 125%

    I would add a line height to your tag above and set it to what you like.

    line-height: 125%;

    If you want you could set padding and margins to 0 and then change them to your liking.
     
    webdesign2005, Nov 10, 2005 IP
  5. cdx

    cdx Peon

    Messages:
    364
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #5
    You were right!

    margin:0;
    padding:0;
    both fixed the problem! Thanks!
     
    cdx, Nov 11, 2005 IP