Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 3 of 3
  1. #1
    Senior Member
    Join Date
    Oct 2007
    Posts
    241
    Member #
    15910
    Hi
    How can I change color of text and font size etc within the cells of table? I want the same for every cell.
    Here is the css code I wrote:
    .topmenufix
    {
    font-size:10px;
    font-family: arial;
    color:red;
    }

    and here is the table:
    <div class="topmenufix">
    <table border="0" >
    <tr>
    <td>
    <a href="<A href="http://www.xxxxxxxxxxx.com">link text</a>">http://www.xxxxxxxxxxx.com">link text</a>
    </td>
    </tr>
    </table>
    Now, only the font family seems to take effect. I can not modify font color and size even if i type something else say font size 5 or color blue etc...it doesnt take effect. What might be the reason?

  2.  

  3. #2
    Junior Member
    Join Date
    Jul 2008
    Location
    India
    Posts
    2
    Member #
    16985
    at your css file place (for global change)
    td {
    font-size:10px;
    font-family: arial;
    color:red;
    }

    or
    assign class to each cell (individual)
    <td class="topmenufix"> ...... </td>

  4. #3
    Senior Member Shani's Avatar
    Join Date
    Nov 2004
    Posts
    1,140
    Member #
    8171
    FYI, if you want all your table cells to be the same throughout your site, the class is not not necessary. If you want it only for this table, probably better to put the class on the table, not in a div. And if there's only one, use an id instead of a class.
    Shani

    I have an eye for detail like you'd never believe.


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 03:03 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com