Page 1 of 2 12 LastLast
Results 1 to 10 of 13
  1. #1
    Banned
    Join Date
    Jul 2011
    Posts
    26
    Thanks
    0
    Thanked 0 Times in 0 Posts

    table background in dreamweaver cs5

    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. #2
    Moderator Corrosive's Avatar
    Join Date
    May 2010
    Location
    Bristol, UK
    Posts
    980
    Thanks
    18
    Thanked 27 Times in 20 Posts
    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. #3
    Banned
    Join Date
    Jul 2011
    Posts
    26
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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. #4
    Senior Member Paul Murray's Avatar
    Join Date
    Sep 2010
    Location
    Manchester
    Posts
    902
    Thanks
    9
    Thanked 20 Times in 18 Posts
    Code:
    table {background-color: #FFF;}

  5. #5
    Moderator Corrosive's Avatar
    Join Date
    May 2010
    Location
    Bristol, UK
    Posts
    980
    Thanks
    18
    Thanked 27 Times in 20 Posts
    Quote Originally Posted by True Graphics View Post
    I have a black background on the website already, I just need a white background inside the table
    please
    Then just change the hex value.

  6. #6
    Banned
    Join Date
    Jul 2011
    Posts
    26
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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 by True Graphics; 08-13-2011 at 02:19 PM.

  7. #7
    Moderator Corrosive's Avatar
    Join Date
    May 2010
    Location
    Bristol, UK
    Posts
    980
    Thanks
    18
    Thanked 27 Times in 20 Posts
    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. #8
    Banned
    Join Date
    Jul 2011
    Posts
    26
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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. #9
    Moderator Corrosive's Avatar
    Join Date
    May 2010
    Location
    Bristol, UK
    Posts
    980
    Thanks
    18
    Thanked 27 Times in 20 Posts
    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. #10
    Banned
    Join Date
    Jul 2011
    Posts
    26
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I have 3 tables and i and I need a background colour for each table where do i put the coding in dreameweaver
    pls

Page 1 of 2 12 LastLast

Similar Threads

  1. Coffee table books
    By Blue Eye in forum Graphic Design Forum:
    Replies: 4
    Last Post: 02-21-2011, 03:04 PM
  2. Page background
    By enviro delivery in forum Tenders & Services Required Forum:
    Replies: 1
    Last Post: 04-30-2010, 11:13 PM
  3. E-commerce order table
    By Gavin Webb in forum Website Coding & Programming Forum:
    Replies: 6
    Last Post: 03-28-2009, 11:30 AM
  4. Background image in a table not appearing in browsers
    By sweetums in forum Website Coding & Programming Forum:
    Replies: 4
    Last Post: 03-08-2009, 12:40 PM
  5. CSS/Resizeable background image
    By Helen in forum Website Design Resources:
    Replies: 0
    Last Post: 01-03-2009, 09:28 PM

Posting Permissions

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