Solved

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

Posted on 2012-03-25
5
241 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

Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

Question has a verified solution.

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

Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
This article discusses how to create an extensible mechanism for linked drop downs.
In this Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: block…
In this tutorial viewers will learn how to code links for mobile sites that, once clicked, send a call or text to a specified number. For a telephone link (once clicked, calls a number), begin with a normal "<a href=" link tag. For the href, specify…

810 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