2 Replies Latest reply on Jul 22, 2007 5:56 PM by Newsgroup_User

    Tables inside Divs

    Simon2k7 Level 1
      Hi

      Im sending this question with the correct wording this time.

      Ive got a site, its not online yet. I want to put a table inside a DIV section. But i cant set the bg color for the table, it always stays as white.

      Can anyone help? maybe Ace?

      thanks
        • 1. Re: Tables inside Divs
          Level 7
          This is the basic idea:

          <style type="text/css">
          #theDiv {
          background: red;
          padding: 10px;
          }

          #theTable {
          background: yellow;
          }
          </style>


          <div id="theDiv">
          <table id="theTable">
          <tr><td>cell</td></tr>
          </table>
          </div>


          What are you doing that's not working? Post the code or a URL to the
          page so we can see the code.


          --
          Alec
          Adobe Community Expert
          • 2. Re: Tables inside Divs
            Level 7
            As I've said, if you make us guess what your code is, you'll never get an
            answer. Show us your code, and you'll get an answer right away.

            --
            Murray --- ICQ 71997575
            Adobe Community Expert
            (If you *MUST* email me, don't LAUGH when you do so!)
            ==================
            http://www.dreamweavermx-templates.com - Template Triage!
            http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
            http://www.dwfaq.com - DW FAQs, Tutorials & Resources
            http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
            ==================


            "Simon2k7" <webforumsuser@macromedia.com> wrote in message
            news:f80r15$hc2$1@forums.macromedia.com...
            > Hi
            >
            > Im sending this question with the correct wording this time.
            >
            > Ive got a site, its not online yet. I want to put a table inside a DIV
            > section. But i cant set the bg color for the table, it always stays as
            > white.
            >
            > Can anyone help? maybe Ace?
            >
            > thanks
            >