text color

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • de Beers

    text color

    How do I change the default "black" text to white in a table?
    Here is the script
    echo "<table border=1, table width=200%, bgcolor=#6699FF >\n";

    Where and how do I add "text color="FFFFFFF? ??


  • Garp

    #2
    Re: text color


    "de Beers" <fdgdf@yahoo.ca > wrote in message
    news:_Krrc.4705 8$qJ5.1140682@n ews20.bellgloba l.com...[color=blue]
    > How do I change the default "black" text to white in a table?
    > Here is the script
    > echo "<table border=1, table width=200%, bgcolor=#6699FF >\n";
    >
    > Where and how do I add "text color="FFFFFFF? ??[/color]

    Wait here while I look up basic HTML in my book of PHP stuff.

    .....

    Oh, alright. Style sheets are your friend.

    <table border="1" width="200%" style="backgrou nd color: #6699FF; color:
    #FFFFFF">
    <tr>
    <td>
    White on blue. Sorta.
    </td>
    </tr>
    </table>

    Garp


    Comment

    • Matthias Esken

      #3
      Re: text color

      de Beers schrieb:
      [color=blue]
      > How do I change the default "black" text to white in a table?
      > Here is the script
      > echo "<table border=1, table width=200%, bgcolor=#6699FF >\n";[/color]

      That's pure HTML/CSS and not a PHP question:

      <table style='border:1 px solid #000; width:200%; background-color:#69F;
      color: #FFF'>

      Regards,
      Matthias

      Comment

      • thomas\stopspammers\

        #4
        Re: text color

        Garp wrote:[color=blue]
        > "de Beers" <fdgdf@yahoo.ca > wrote in message
        > news:_Krrc.4705 8$qJ5.1140682@n ews20.bellgloba l.com...
        >[color=green]
        >>How do I change the default "black" text to white in a table?
        >>Here is the script
        >>echo "<table border=1, table width=200%, bgcolor=#6699FF >\n";
        >>
        >>Where and how do I add "text color="FFFFFFF? ??[/color]
        >
        >
        > Wait here while I look up basic HTML in my book of PHP stuff.
        >
        > ....
        >
        > Oh, alright. Style sheets are your friend.
        >
        > <table border="1" width="200%" style="backgrou nd color: #6699FF; color:[/color]
        What is this? "background color:"? i think it sgould just be
        "background :". I'd believe "background-color:", but that? Does it work?
        Which browser? Is it standard?[color=blue]
        > #FFFFFF">
        > <tr>
        > <td>
        > White on blue. Sorta.
        > </td>
        > </tr>
        > </table>
        >
        > Garp
        >
        >[/color]

        Comment

        • Garp

          #5
          Re: text color


          "thomas"stopspa mmers"" <"thomas\"stops pammers\""@joll ans.com> wrote in
          message news:c8n2af$j8k $04$2@news.t-online.com...[color=blue]
          > Garp wrote:[color=green]
          > > <table border="1" width="200%" style="backgrou nd color: #6699FF; color:[/color]
          > What is this? "background color:"? i think it sgould just be
          > "background :". I'd believe "background-color:", but that? Does it work?
          > Which browser? Is it standard?[/color]

          Oh, ye of little faith!



          Garp


          Comment

          • Matthias Esken

            #6
            Re: text color

            thomas"stopspam mers" schrieb:
            [color=blue][color=green]
            >> <table border="1" width="200%" style="backgrou nd color: #6699FF; color:[/color]
            > What is this? "background color:"?[/color]

            A typo. Should be "background-color".

            Regards,
            Matthias

            Comment

            • Garp

              #7
              Re: text color


              "Matthias Esken" <muelleimer2004 nospam@usenetve rwaltung.org> wrote in
              message news:c8ng5m.r0. 1@usenet.esken. de...[color=blue]
              > thomas"stopspam mers" schrieb:
              >[color=green][color=darkred]
              > >> <table border="1" width="200%" style="backgrou nd color: #6699FF; color:[/color]
              > > What is this? "background color:"?[/color]
              >
              > A typo. Should be "background-color".
              >
              > Regards,
              > Matthias[/color]

              Agh! Thanks for clearing that up, I did wonder why thomas"stopspam mers" was
              confused. My fault for not cutting & pasting (I had something else in the
              buffer, lazy).

              Garp


              Comment

              • Karl Groves

                #8
                Re: text color


                "de Beers" <fdgdf@yahoo.ca > wrote in message
                news:_Krrc.4705 8$qJ5.1140682@n ews20.bellgloba l.com...[color=blue]
                > How do I change the default "black" text to white in a table?
                > Here is the script
                > echo "<table border=1, table width=200%, bgcolor=#6699FF >\n";
                >
                > Where and how do I add "text color="FFFFFFF? ??[/color]

                The HTML and CSS groups are that way -------------->

                First, why do you need a 200% wide table? That will make the table 200% as
                wide as its container.
                Tables are for tabular data. As such, the do not need to be any larger than
                the data which they contain.

                Lemme see if I can fix this:
                echo "<table id=\"table_id_h ere\">\n";

                Much better!

                Now, in your CSS file, use:

                #table_id_here{
                border: 1px;
                width: xxx; /* Where xxx is whatever you determine that isn't some
                gibberish like 200% */
                background-color: #6699ff;
                color: #ffffff;
                }


                HTH!


                -Karl


                Comment

                • Shane Lahey

                  #9
                  Re: text color

                  On Thu, 27 May 2004 12:21:25 -0400, "Karl Groves"
                  <karl@NOSPAMkar lcore.com> wrote:
                  [color=blue]
                  >
                  >"de Beers" <fdgdf@yahoo.ca > wrote in message
                  >news:_Krrc.470 58$qJ5.1140682@ news20.bellglob al.com...[color=green]
                  >> How do I change the default "black" text to white in a table?
                  >> Here is the script
                  >> echo "<table border=1, table width=200%, bgcolor=#6699FF >\n";
                  >>
                  >> Where and how do I add "text color="FFFFFFF? ??[/color]
                  >
                  >The HTML and CSS groups are that way -------------->
                  >
                  >First, why do you need a 200% wide table? That will make the table 200% as
                  >wide as its container.
                  >Tables are for tabular data. As such, the do not need to be any larger than
                  >the data which they contain.
                  >
                  >Lemme see if I can fix this:
                  >echo "<table id=\"table_id_h ere\">\n";
                  >
                  >Much better!
                  >
                  >Now, in your CSS file, use:
                  >
                  >#table_id_here {
                  > border: 1px;
                  > width: xxx; /* Where xxx is whatever you determine that isn't some
                  >gibberish like 200% */
                  > background-color: #6699ff;
                  > color: #ffffff;
                  > }
                  >
                  >
                  >HTH!
                  >
                  >
                  >-Karl
                  >[/color]

                  could also use an inline style tag.

                  echo "<table border='1' width='100%'
                  style='backgrou nd-color:#6699FF;c olor:#DDEEFF;'> \n";

                  Comment

                  • Karl Groves

                    #10
                    Re: text color


                    "Shane Lahey" <s.lahey@roadru nner.nf.net> wrote in message
                    news:519cb09to4 k90ld3n3s5s4si2 1mba5omg1@4ax.c om...[color=blue]
                    > On Thu, 27 May 2004 12:21:25 -0400, "Karl Groves"
                    > <karl@NOSPAMkar lcore.com> wrote:
                    >[color=green]
                    > >
                    > >"de Beers" <fdgdf@yahoo.ca > wrote in message
                    > >news:_Krrc.470 58$qJ5.1140682@ news20.bellglob al.com...[color=darkred]
                    > >> How do I change the default "black" text to white in a table?
                    > >> Here is the script
                    > >> echo "<table border=1, table width=200%, bgcolor=#6699FF >\n";
                    > >>
                    > >> Where and how do I add "text color="FFFFFFF? ??[/color]
                    > >
                    > >The HTML and CSS groups are that way -------------->
                    > >
                    > >First, why do you need a 200% wide table? That will make the table 200%[/color][/color]
                    as[color=blue][color=green]
                    > >wide as its container.
                    > >Tables are for tabular data. As such, the do not need to be any larger[/color][/color]
                    than[color=blue][color=green]
                    > >the data which they contain.
                    > >
                    > >Lemme see if I can fix this:
                    > >echo "<table id=\"table_id_h ere\">\n";
                    > >
                    > >Much better!
                    > >
                    > >Now, in your CSS file, use:
                    > >
                    > >#table_id_here {
                    > > border: 1px;
                    > > width: xxx; /* Where xxx is whatever you determine that isn't some
                    > >gibberish like 200% */
                    > > background-color: #6699ff;
                    > > color: #ffffff;
                    > > }
                    > >
                    > >
                    > >HTH!
                    > >
                    > >
                    > >-Karl
                    > >[/color]
                    >
                    > could also use an inline style tag.
                    >
                    > echo "<table border='1' width='100%'
                    > style='backgrou nd-color:#6699FF;c olor:#DDEEFF;'> \n";[/color]

                    Sure. And that would mean that you'd have to go back to that line of your
                    PHP code in order to change the appearance in the case of the inevitable
                    redesign.
                    ;-)

                    -Karl




                    Comment

                    • Shane Lahey

                      #11
                      Re: text color

                      On Thu, 27 May 2004 15:41:10 -0400, "Karl Groves"
                      <karl@NOSPAMkar lcore.com> wrote:
                      [color=blue]
                      >
                      >Sure. And that would mean that you'd have to go back to that line of your
                      >PHP code in order to change the appearance in the case of the inevitable
                      >redesign.
                      >;-)
                      >
                      >-Karl
                      >
                      >
                      >[/color]
                      was just pointing out that it 'could' be done :D

                      Comment

                      • de Beers

                        #12
                        Re: text color

                        Thanks!

                        Right about the 200% etc etc - but have another question.. below is the
                        script - the first row is the heading extracted from exel file - I would
                        like to make it white. I have figured out how to effect "col.firstC ol" but
                        not the first row. any ideas?

                        $result = mysql_query("SE LECT * FROM BiaMembers WHERE BoardMember = '1'");
                        print "<table>";
                        while ($myrow = mysql_fetch_row ($result))
                        {
                        $row = 1-$row;
                        $color = ($row==0)?"#009 9FF":"#CCCCCC" ;
                        printf("<tr
                        bgcolor=$color> <td>%s</td><td>%s</td><td>%s</td><td>%s</td><td>%s</td>
                        <td>%s</td><td>%s</td><td>%s</td><td>%s</td><td>%s</td><td>%s</tr>\n",
                        $myrow[1], $myrow[2], $myrow[3], $myrow[4], $myrow[5],
                        $myrow[6], $myrow[7], $myrow[8], $myrow[9], $myrow[12], $myrow[14]);
                        }
                        print "</table>";


                        "Shane Lahey" <s.lahey@roadru nner.nf.net> wrote in message
                        news:qulcb018q7 45m8ops69uq6plk oodbk172n@4ax.c om...[color=blue]
                        > On Thu, 27 May 2004 15:41:10 -0400, "Karl Groves"
                        > <karl@NOSPAMkar lcore.com> wrote:
                        >[color=green]
                        > >
                        > >Sure. And that would mean that you'd have to go back to that line of your
                        > >PHP code in order to change the appearance in the case of the inevitable
                        > >redesign.
                        > >;-)
                        > >
                        > >-Karl
                        > >
                        > >
                        > >[/color]
                        > was just pointing out that it 'could' be done :D[/color]


                        Comment

                        • Pedro Graca

                          #13
                          Re: text color

                          de Beers wrote:[color=blue]
                          > Right about the 200% etc etc - but have another question.. below is the
                          > script - the first row is the heading extracted from exel file - I would
                          > like to make it white. I have figured out how to effect "col.firstC ol" but
                          > not the first row. any ideas?[/color]

                          $first_row = true;
                          [color=blue]
                          > $result = mysql_query("SE LECT * FROM BiaMembers WHERE BoardMember = '1'");
                          > print "<table>";
                          > while ($myrow = mysql_fetch_row ($result))
                          > {
                          > $row = 1-$row;
                          > $color = ($row==0)?"#009 9FF":"#CCCCCC" ;[/color]

                          if ($first_row) {
                          $first_row = false;
                          $color = "white";
                          }
                          [color=blue]
                          > printf("<tr[/color]
                          (snip)

                          --
                          USENET would be a better place if everybody read: : mail address :
                          http://www.catb.org/~esr/faqs/smart-questions.html : is valid for :
                          http://www.netmeister.org/news/learn2quote2.html : "text/plain" :
                          http://www.expita.com/nomime.html : to 10K bytes :

                          Comment

                          Working...