Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    Regular Coder
    Join Date
    Sep 2002
    Location
    California
    Posts
    511
    Thanks
    1
    Thanked 1 Time in 1 Post

    Table border color and multiple text colors in a cell

    Hi im trying to make a new menu for my web site thats more "user friendly" so im turning to html tables and was wondering how to chnage the colors of the border also im making a updates table to show users what ive done to improve my site and i was wondering if you could have more than one text color in one cell like having the date say "December 25,"in red then following that in the same cell "its X-mas" in green. I know this sounds like a easy question to ask but im only 15 so cut me some slack. =)

    Thanks to those who reply

  • #2
    Senior Coder Mhtml's Avatar
    Join Date
    Jun 2002
    Location
    Sydney, Australia
    Posts
    3,531
    Thanks
    0
    Thanked 1 Time in 1 Post
    I'm 15 to!

    Okey dokes firstly I think you will benefit from going to www.w3schools.com and learning HTML and CSS.

    Then for changing text colors I think you will find after reading the tutorial you will go duh and hit yourself in the head (no offence).
    Code:
    <font color="red">25/12/05  </font><font color="green">Merry Christmas!</font>
    Changing border colors..
    Code:
    <tr>
      <td style="border-style:solid;border-width:1;border-color:blue">
        THE TABLE CELL CONTENT GOES HERE!
      </td>
    </tr>

  • #3
    Regular Coder
    Join Date
    Jun 2002
    Location
    United Kingdom Confused: Often
    Posts
    859
    Thanks
    0
    Thanked 0 Times in 0 Posts
    the <font> tag shouldnt really be used these days... try using the <span> tag...

    so in place of <font face="verdana" color="#000000"> you should use <span style="font-family: verdana; color: #000000">

    im 15 too...
    redhead

  • #4
    Senior Coder
    Join Date
    Jun 2002
    Location
    ColoRockyz
    Posts
    1,646
    Thanks
    1
    Thanked 0 Times in 0 Posts
    ...or better yet, use shorthand <span style="font:normal 15 tahoma; color:ff0000">COLORED TEXT</span>
    Zoobie or not Zoobie...That is the problem.
    <body onUnload="flush( ! )">


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •