Skip navigation
60251977
Currently Being Moderated

Table text prints wrong colour

Jul 14, 2012 1:36 AM

Tags: #cs3 #code

My webpages have a black background with text in yellow.

 

It also has some information in tables, and there are links within this table.

 

I can use print css to successfully print the body of the pages in black text, but the text in tables will only print in yellow. This is not easy to read on a white background and I simply cannot figure out how to get around this. The tables are required, by the way.

 

Cn anyone suggest a code that will print out the table text in yellow, and the links within that table in blue?

 

Thanks for any help that is offered

 
Replies
  • Currently Being Moderated
    Jul 14, 2012 1:41 AM   in reply to 60251977

    Please post a link to your website so we can see it.

     

    Without one we're guessing.

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 14, 2012 2:57 AM   in reply to 60251977

    Try adding the following at the end of your print.css stylesheet

     

    td, th {

         color: #000;

    }

    a {

         color: blue;

    }

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 14, 2012 6:21 AM   in reply to 60251977

    Have a look at line 49 of your document as in

    body,td,th {

        font-size: 14px;

       color: #FFFF00;

    }

     

    Gramps

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 14, 2012 7:02 AM   in reply to 60251977

    Have a look at line 49 of your document.

     

    This is your main document not a style sheet.

     

    Gramps

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 14, 2012 8:10 AM   in reply to 60251977

    There are a few things that you can do. I would probably move line #26 to just above the ending HEAD tag as in

    <link href="../../print.css" rel="stylesheet" type="text/css" media="print" />

    </head>

     

    Gramps

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 14, 2012 6:57 PM   in reply to 60251977

    At the bottom of print.css add the following

    body,td,th {

        font-size: 14px;

        color: #000000;

    }

    h3 {

        color: #000000;

    }

    h3> {

        color: #000000;

    }

    h1 {

        color: #000000;

    }

    Gramps

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points