Print Reseller Scheme
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

table background in dreamweaver cs5

Discussion in 'Adobe Forum:' started by True Graphics, Aug 13, 2011.

  1. True Graphics

    True Graphics New Member

    hello, I am using dreamweaver cs5 and i am trying to produce a table with a back ground colour in the
    table how do you do it please. thanks
     
  2. Corrosive

    Corrosive Moderator Staff Member

    CSS;

    Code:
    table {background-color: #000;}
    will give you a black background to all tables on your website. Of course you can also target it using a class or ID.
     
  3. True Graphics

    True Graphics New Member

    I have a black background on the website already, I just need merge the cells to make a yellow background inside the table please
     
  4. Paul Murray

    Paul Murray Moderator Staff Member

    Code:
    table {background-color: #FFF;}
     
  5. Corrosive

    Corrosive Moderator Staff Member

    Then just change the hex value.
     
  6. True Graphics

    True Graphics New Member

    I am trying to do the background colour inside the table only where do I put the coding
    for the background color to change the hex value which I am using dreamweaver cs5

    <table width="336" height="77" border="1">

    <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    </tr>
    <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    </tr>
    <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    </tr>
    </table>
    <p>&nbsp;</p>
     
    Last edited: Aug 13, 2011
  7. Corrosive

    Corrosive Moderator Staff Member

    If you can't get your head around basic CSS then try it inline;

    Code:
    <table width="336" height="77" border="1" style="background-color: #fff;">  
     
      <tr>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
      </tr>
    </table>
     
  8. True Graphics

    True Graphics New Member

    I am trying to put background colour only for the table where do I put the coding
    for table background color only which I am using dreamweaver cs5

    <table width="336" height="77" border="1">

    <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    </tr>
    <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    </tr>
    <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    </tr>
    </table>
    <p>&nbsp;</p>
     
  9. Corrosive

    Corrosive Moderator Staff Member

    I've just told you and given you two methods.

    Do it in the CSS (with either a class or ID if you want to target a specific table) or do it inline as my post above.
     
  10. True Graphics

    True Graphics New Member

    I have 3 tables and i and I need a background colour for each table where do i put the coding in dreameweaver
    pls
     
  11. Corrosive

    Corrosive Moderator Staff Member

    I give up :icon_Wall: Anyone else want to S P E L L I T O U T?
     
  12. Paul Murray

    Paul Murray Moderator Staff Member

  13. chris_17

    chris_17 Member

    May I ask what are using the table for?
     

Share This Page