bgcolor in TR tag isn't printing?

Discussion in 'HTML & Website Design' started by amaze, Feb 14, 2007.

  1. #1
    Hi,

    When I put a bgcolor in the TR tag it isn't printing? Any way of making it print?

    Thanks
     
    amaze, Feb 14, 2007 IP
  2. Munk

    Munk Peon

    Messages:
    56
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Physically printing as in if the page is printed?

    If so, I don't think you can control that - I think it's up to the user to choose to print background colors in their browser's print options.
     
    Munk, Feb 14, 2007 IP
  3. amaze

    amaze Active Member

    Messages:
    594
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    60
    #3
    Ahh thats a pain. Whats the easiest way to put a think border around TRs?

    Thanks :)
     
    amaze, Feb 14, 2007 IP
  4. Munk

    Munk Peon

    Messages:
    56
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #4
    You said "printing" originally - do you really mean printing or do you mean displaying on-screen?

    To answer your last question, the answer is "it depends". :) Something like this?

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
      <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
      <meta http-equiv="Content-Language" content="en-us" />
      <title>Test</title>
    </head>
    <body>
    <table style="border-collapse: collapse;">
      <tr style="border: 3px solid red;">
         <td>cell 1</td>
         <td>cell 2</td>
      </tr>
      <tr>
         <td>cell 3</td>
         <td>cell 5</td>
      </tr>
    </table>
    </body>
    </html>
    Code (markup):
     
    Munk, Feb 14, 2007 IP
  5. amaze

    amaze Active Member

    Messages:
    594
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    60
    #5
    That's great thank you! :)
     
    amaze, Feb 14, 2007 IP