Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 250
  • Last Modified:

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

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
tenriquez199
Asked:
tenriquez199
  • 2
  • 2
1 Solution
 
himanshutCommented:
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
 
tenriquez199Author Commented:
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
 
Sathish David Kumar NArchitectCommented:
write in CSS file and call that where you need  Class thats all
0
 
himanshutCommented:
<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
 
tenriquez199Author Commented:
excelente himanshut thanks
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Easily Design & Build Your Next Website

Squarespace’s all-in-one platform gives you everything you need to express yourself creatively online, whether it is with a domain, website, or online store. Get started with your free trial today, and when ready, take 10% off your first purchase with offer code 'EXPERTS'.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now