problem with row size changing

Discussion in 'Web Design and Development' started by djsound, Mar 8, 2010.

  1. djsound macrumors 6502a

    djsound

    Joined:
    Dec 4, 2006
    #1
  2. angelwatt Moderator emeritus

    angelwatt

    Joined:
    Aug 16, 2005
    Location:
    USA
    #2
    Because there's a height attribute set on each of the row tags (tr).
     
  3. djsound thread starter macrumors 6502a

    djsound

    Joined:
    Dec 4, 2006
    #3
    Strange.....I was using Dreamweaver CS4 and I gave all the tr's a height value of 20......but it didn't change the code....hmmmm.....in the properties thing in Dreamweaver they all say 20 but when i view the code therye like 85, 60, 40......grrrr
     
  4. angelwatt Moderator emeritus

    angelwatt

    Joined:
    Aug 16, 2005
    Location:
    USA
    #4
    Try setting it with CSS.
    Code:
    tr {
     height: 20px;
    }
     
  5. djsound thread starter macrumors 6502a

    djsound

    Joined:
    Dec 4, 2006
  6. angelwatt Moderator emeritus

    angelwatt

    Joined:
    Aug 16, 2005
    Location:
    USA
    #6
    Seems good now. They all read 20 in the source. Optimally, you should take out the attributes all together and just use the CSS. The CSS and attribute were likely fighting and may have caused conflicts. Having it in CSS alone would give you a single location to change in the future if you decided to make a change.
     
  7. djsound thread starter macrumors 6502a

    djsound

    Joined:
    Dec 4, 2006

Share This Page