Wrox Programmer Forums
|
HTML Code Clinic Do you have some HTML code you'd like to share and get suggestions from others for tweaking or improving it? This discussion is the place.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the HTML Code Clinic section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 12th, 2004, 11:13 AM
Registered User
 
Join Date: Nov 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default change textcolor

hi
i want to change the text color inside the table of a specific cell
And also whant to change the width of that row.
so plz helpme to write the code for it...

waiting for reply
Sheraz
 
Old November 12th, 2004, 11:19 AM
richard.york's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 1,706
Thanks: 0
Thanked 6 Times in 6 Posts
Default



Changing the width of only one row isn't possible in and of itself, it would help to see a link to an example and greater elaboration of what it is you need.

As for changing the color of the text within a specific cell you can use a style sheet for that.

In the style sheet:
Code:
td.customerdetails {
     color: maroon;
}
And in the HTML
Code:
<table>
     <tr>
          <td class='customerdetails'>
                Blah blah blah...
          </td>
     </tr>
</table>


Regards,
Rich

--
[http://www.smilingsouls.net]
Mail_IMAP: A PHP/C-Client/PEAR solution for webmail
Author: Beginning CSS: Cascading Style Sheets For Web Design
 
Old November 22nd, 2004, 03:10 PM
Registered User
 
Join Date: Nov 2004
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

add style sheet reference for a specific cell by adding a parameter like <td class="somestyle">..

 
Old November 22nd, 2004, 04:50 PM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 1,285
Thanks: 0
Thanked 2 Times in 2 Posts
Default

Isn't that exactly what Rich just posted?

-Snib
Where will you be in 100 years?
Try new FreshView 0.2!





Similar Threads
Thread Thread Starter Forum Replies Last Post
What Do I Change? myself Classic ASP Basics 2 August 1st, 2006 04:01 PM
Automatically change value abhisheksud Classic ASP Databases 0 December 13th, 2005 02:33 AM
Change Event Help BryanBrassell Excel VBA 4 July 29th, 2004 03:42 PM
change z-index anshul Javascript How-To 1 July 27th, 2004 03:19 AM
Why does it change kilika VBScript 0 September 18th, 2003 05:14 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.