Using CSS header corrupt table height

Ask a Question related to Macromedia Dynamic HTML, Design and Development.

  1. #1

    Default Using CSS header corrupt table height

    Hi,
    I'm new to style sheets and hating it so far ... but I know the gains ... so can anyone explain what I'm doing wrong :

    <table width="100%" border="0" cellpadding="5" cellspacing="0">
    <tr>
    <td bgcolor="#006600">
    <h1>Rules of the Game</h1>
    </td>
    </tr>
    </table>

    where h1 is defined as :
    H1
    {
    font-size: 16px;
    ; font-weight: bold; color: #FFFFFF
    }

    The problem is that in IE the table height increases as though there was a <br> terminator ... this problem is not present in Dreamweaver's view panel.

    My previous line that worked is :

    <p><b><font face="Arial" size="3" color="#FFFFFF">Rules of the Game</font></b></p>


    Thanks

    Andrew





    AndrewJJ webforumsuser@macromedia.com Guest

  2. Similar Questions and Discussions

    1. CSS: 100% layout height with fixed header
      I have a design that has a centered div that stretches across the entire height of the browser. Within this div I have a header div with navigation...
    2. Corrupt Table Error Mx 6,1,0,83762
      Heya, We are running MX 6,1,0,83762 on Solaris and one of out boxes just started giving us this error: I have looked around and nobody seems...
    3. Table Height
      "Vistastar" webforumsuser@macromedia.com wrote: Hi Table height is invalid mark up and best avoided. Your table should be allowed to...
    4. Repeated Corrupt Tables and Table Crashes
      I have a couple of tables that randomly starting crashing/becoming corrupt, and I'm not sure what to make of it. Each time I repair the table, it...
    5. Table row height problems
      Look at the source of my splash page on my site below on a possible solution. -- ============================================== Thomas A....
  3. #2

    Default Re: Using CSS header corrupt table height

    Change this -

    H1
    {
    font-size: 16px;
    ; font-weight: bold; color: #FFFFFF
    }


    to this -

    H1
    {
    font-size: 16px;
    font-weight: bold; color: #FFFFFF
    margin-top:2px; margin-bottom:2px;
    }

    (I removed an extra semicolon)

    and see if that helps. You have forgotten about the inherent margin that
    many HTML tags have.

    --
    Murray --- ICQ 71997575
    Team Macromedia Volunteer for Dreamweaver MX
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    [url]news://forums.macromedia.com/macromedia.dreamweaver[/url] - THE BEST WAY TO GET
    ANSWERS
    ==================
    [url]http://www.dreamweavermx-templates.com[/url] - Template Triage!
    [url]http://www.projectseven.com/go[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.DreamweaverFAQ.com[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.macromedia.com/support/search/[/url] - Macromedia (MM) Technotes
    ==================

    "AndrewJJ" <webforumsuser@macromedia.com> wrote in message
    news:bo6grq$10t$1@forums.macromedia.com...
    > Hi,
    > I'm new to style sheets and hating it so far ... but I know the gains ...
    so can anyone explain what I'm doing wrong :
    >
    > <table width="100%" border="0" cellpadding="5" cellspacing="0">
    > <tr>
    > <td bgcolor="#006600">
    > <h1>Rules of the Game</h1>
    > </td>
    > </tr>
    > </table>
    >
    > where h1 is defined as :
    > H1
    > {
    > font-size: 16px;
    > ; font-weight: bold; color: #FFFFFF
    > }
    >
    > The problem is that in IE the table height increases as though there was a
    <br> terminator ... this problem is not present in Dreamweaver's view panel.
    >
    > My previous line that worked is :
    >
    > <p><b><font face="Arial" size="3" color="#FFFFFF">Rules of the
    Game</font></b></p>
    >
    >
    > Thanks
    >
    > Andrew
    >
    >
    >
    >

    Murray *TMM* Guest

  4. #3

    Default Re: Using CSS header corrupt table height

    Hi,
    Many thanks ... it works ... I wish that I could say of course ! ... but it's all still a little vague yet ...

    Andrew :o)


    AndrewJJ webforumsuser@macromedia.com Guest

  5. #4

    Default Re: Using CSS header corrupt table height

    Woo Hoo! You're welcome! I'll say it for you - of course it works....

    --
    Murray --- ICQ 71997575
    Team Macromedia Volunteer for Dreamweaver MX
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    [url]news://forums.macromedia.com/macromedia.dreamweaver[/url] - THE BEST WAY TO GET
    ANSWERS
    ==================
    [url]http://www.dreamweavermx-templates.com[/url] - Template Triage!
    [url]http://www.projectseven.com/go[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.DreamweaverFAQ.com[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.macromedia.com/support/search/[/url] - Macromedia (MM) Technotes
    ==================

    "AndrewJJ" <webforumsuser@macromedia.com> wrote in message
    news:bo6mb1$98c$1@forums.macromedia.com...
    > Hi,
    > Many thanks ... it works ... I wish that I could say of course ! ... but
    it's all still a little vague yet ...
    >
    > Andrew :o)
    >
    >

    Murray *TMM* Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139