Solved

how can i set diferrent fon t color in cell tables html

Posted on 2012-03-25
5
242 Views
Last Modified: 2012-03-26
hi

i have ant html file, in this i have a html table, i need to alternate color cell

example cell row 2 col2 = blue
cell row 3 col 2 = red


is it possible?

thanks a lot
index.html
0
Comment
Question by:tenriquez199
  • 2
  • 2
5 Comments
 
LVL 10

Expert Comment

by:himanshut
ID: 37764169
Here You go:

    <table>
        <tr>
            <td>
            </td>
            <td style="background-color: Blue">
            </td>
        </tr>
        <tr>
            <td>
            </td>
            <td style="background-color: Red">
            </td>
        </tr>
    </table>
0
 
LVL 1

Author Comment

by:tenriquez199
ID: 37764227
himanshut



thanks

i need to chenge color font text, the solution you give me change bakground cell

has you other idea? thanks a lot
0
 
LVL 20

Expert Comment

by:Sathish David Kumar N
ID: 37764547
write in CSS file and call that where you need  Class thats all
0
 
LVL 10

Accepted Solution

by:
himanshut earned 500 total points
ID: 37769335
<table>
        <tr>
            <td>
            </td>
            <td style="background-color: Blue;">
                <font color="red">Hello Red</font>
            </td>
        </tr>
        <tr>
            <td>
            </td>
            <td style="background-color: Red">
                <font color="Blue">Hello Blue</font>
            </td>
        </tr>
    </table>
0
 
LVL 1

Author Closing Comment

by:tenriquez199
ID: 37769391
excelente himanshut thanks
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Hide cell in a table 2 27
jQuery Dialog Autoresize Bug 2 25
Extracting content from meta tag PHP MYHTML DOM 3 20
Ouput in html in powershell 2 19
Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
This article discusses how to create an extensible mechanism for linked drop downs.
In this tutorial viewers will learn how add a scalable full-width header using CSS3. Create a new HTML document with an internal stylesheet. Set a tiled background.:  Create a new div and name it Header. Position it with position:absolute at the top…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question