473,327 Members | 2,112 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,327 software developers and data experts.

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???
Jul 17 '05 #1
12 2686

"de Beers" <fd***@yahoo.ca> wrote in message
news:_K*********************@news20.bellglobal.com ...
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???


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="background color: #6699FF; color:
#FFFFFF">
<tr>
<td>
White on blue. Sorta.
</td>
</tr>
</table>

Garp
Jul 17 '05 #2
de Beers schrieb:
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";


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

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

Regards,
Matthias
Jul 17 '05 #3
Garp wrote:
"de Beers" <fd***@yahoo.ca> wrote in message
news:_K*********************@news20.bellglobal.com ...
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???

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="background color: #6699FF; 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? #FFFFFF">
<tr>
<td>
White on blue. Sorta.
</td>
</tr>
</table>

Garp

Jul 17 '05 #4

"thomas"stopspammers"" <"thomas\"stopspammers\""@jollans.com> wrote in
message news:c8*************@news.t-online.com...
Garp wrote:
<table border="1" width="200%" style="background color: #6699FF; 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?


Oh, ye of little faith!

http://www.w3.org/Style/CSS/Test/CSS...ent/sec532.htm

Garp
Jul 17 '05 #5
thomas"stopspammers" schrieb:
<table border="1" width="200%" style="background color: #6699FF; color:

What is this? "background color:"?


A typo. Should be "background-color".

Regards,
Matthias
Jul 17 '05 #6

"Matthias Esken" <mu******************@usenetverwaltung.org> wrote in
message news:c8*********@usenet.esken.de...
thomas"stopspammers" schrieb:
<table border="1" width="200%" style="background color: #6699FF; color:

What is this? "background color:"?


A typo. Should be "background-color".

Regards,
Matthias


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

Garp
Jul 17 '05 #7

"de Beers" <fd***@yahoo.ca> wrote in message
news:_K*********************@news20.bellglobal.com ...
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???


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_here\">\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
Jul 17 '05 #8
On Thu, 27 May 2004 12:21:25 -0400, "Karl Groves"
<ka**@NOSPAMkarlcore.com> wrote:

"de Beers" <fd***@yahoo.ca> wrote in message
news:_K*********************@news20.bellglobal.co m...
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???


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_here\">\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


could also use an inline style tag.

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

Jul 17 '05 #9

"Shane Lahey" <s.*****@roadrunner.nf.net> wrote in message
news:51********************************@4ax.com...
On Thu, 27 May 2004 12:21:25 -0400, "Karl Groves"
<ka**@NOSPAMkarlcore.com> wrote:

"de Beers" <fd***@yahoo.ca> wrote in message
news:_K*********************@news20.bellglobal.co m...
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???


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

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

Lemme see if I can fix this:
echo "<table id=\"table_id_here\">\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


could also use an inline style tag.

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


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


Jul 17 '05 #10
On Thu, 27 May 2004 15:41:10 -0400, "Karl Groves"
<ka**@NOSPAMkarlcore.com> wrote:

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

was just pointing out that it 'could' be done :D
Jul 17 '05 #11
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.firstCol" but
not the first row. any ideas?

$result = mysql_query("SELECT * FROM BiaMembers WHERE BoardMember = '1'");
print "<table>";
while ($myrow = mysql_fetch_row($result))
{
$row = 1-$row;
$color = ($row==0)?"#0099FF":"#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.*****@roadrunner.nf.net> wrote in message
news:qu********************************@4ax.com...
On Thu, 27 May 2004 15:41:10 -0400, "Karl Groves"
<ka**@NOSPAMkarlcore.com> wrote:

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

was just pointing out that it 'could' be done :D

Jul 17 '05 #12
de Beers wrote:
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.firstCol" but
not the first row. any ideas?
$first_row = true;
$result = mysql_query("SELECT * FROM BiaMembers WHERE BoardMember = '1'");
print "<table>";
while ($myrow = mysql_fetch_row($result))
{
$row = 1-$row;
$color = ($row==0)?"#0099FF":"#CCCCCC";
if ($first_row) {
$first_row = false;
$color = "white";
}
printf("<tr

(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 :
Jul 17 '05 #13

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
by: Ed Suominen | last post by:
I'm thinking of implementing a real-time collaborative text editor in Python using Twisted. An initial plan is to use a Twisted PB server daemon that accepts user:password:file connections from...
6
by: Suresh Kumaran | last post by:
Hi All, Does anybody know the sytax in VB.NET to write the contents of a multiline text box to a text file? Appreciate help. Suresh
27
by: Eric | last post by:
Assume that disk space is not an issue (the files will be small < 5k in general for the purpose of storing preferences) Assume that transportation to another OS may never occur. Are there...
3
by: Xerxes | last post by:
Hi, I need help in setting up a page where the text wraps around an image. Right now, I am using table, with text in one <td> and the image in the adjacent <td>. The problem is when the text is...
4
by: Arif Çimen | last post by:
Hi to everybody, I have chnged a button text in design mode. But After compiling and executing the program the text of the button do not change to new value. Any Ideas? Thaks for helps.
2
by: Buddy Ackerman | last post by:
Apparently .NET strips these white space characters (MSXML doesn't) regardless of what the output method is set to. I'm using <xsl:text> </xsl:text> to output a tab character and...
10
by: Nikolay Petrov | last post by:
How can I convert DOS cyrillic text to Unicode
3
by: jweinberg1975 | last post by:
I would like for users to be able to select from a small number of options that come from a little drop down menu which then closes. .....
2
by: george.leithead | last post by:
Hi all, I have a very strange problem! In following Web page (which is generated from a CMS System), the navigation to the left 'dissapears' when you roll the mouse over the links? It does not...
7
by: kirkgilbert | last post by:
I am trying to do an onchange event in a form using a text field. The form is tied to a record set that is part of a repeated region. One the first record when I edit the data it works perfectly. ...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.