#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2000
    Posts
    16
    Rep Power
    0
    OK this is wierd and I really can't find a solution.

    I keep having my text color change back to #000000.

    this only happens after a table.

    Having a table generlly means having columns.

    the actall problem is this:

    if using a style sheet as such:

    BODY{
    color:#ff0000;

    }
    TD{
    font-family:sans-serif;
    color: #0000ff;
    }

    OK and your HTML within the body does this

    <BODY>

    Before the table
    <TABLE>
    <TR>
    <TD>Within a column</TD>
    </TR>
    </TABLE>
    <BR>
    After the Table

    </BODY>

    Your output will be:

    Before the table --in red color
    within a column --in blue.
    after the table --in red color.

    This is GOOD this is the way it works.

    However if you change the <TABLE> tag
    to <TABLE width="50%"> or any other width
    then the out put becomes.

    Before the table --in red color
    within a column --in blue.
    after the table --in BLACK color.

    Now if you remove the
    font-family tag from the TD in the style sheet this problem goes away.

    It is realy wierd.

    If you set a font-family within TD in a style sheet and use a TABLE with the width set
    you loose the BODY color for everything after
    the Table.

    Wierd.

    Any ideas WHY.

    This happens in netscape and IE.

  2. #2
  3. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2000
    Posts
    5
    Rep Power
    0
    It sounds like a browser bug, but if it's consistent across Netscape 4.x and MSIE, it might not be. Have you tried it with Mozilla?

    BTW: I noticed you've set the foreground color without specifying a background color. That may make text invisible depending on the user's color configuration and browser defaults.
  4. #3
  5. Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Feb 2000
    Location
    Perth West Australia
    Posts
    757
    Rep Power
    15
    not sure where the problem is -but why not use classes instead. Do not set a td style for this to work .

    eg:

    .main{
    color : #060606 ;
    font-family : Arial ;
    font-size : 11pt ;
    font-weight : 100 ;
    }
    (I use a seperate style sheet)

    then <td class="main"> blah etc

    even Netscape understands this so its pretty safe all round.

    hope that helps?

    Simon
    firepages@hotmail.com

    ------------------
    Simon Wheeler
    FirePages -DHTML/PHP/MySQL

Similar Threads

  1. Weird Microsoft Outlook problem
    By tarheel7496 in forum Dev Shed Lounge
    Replies: 8
    Last Post: February 3rd, 2004, 05:34 PM
  2. weird java problem..please help
    By suwandy in forum Java Help
    Replies: 1
    Last Post: January 26th, 2004, 05:13 AM
  3. Weird new setcookie() problem
    By Cirrus in forum PHP Development
    Replies: 4
    Last Post: January 13th, 2004, 03:27 AM
  4. weird problem with qsort and structs
    By ToKu-John in forum C Programming
    Replies: 2
    Last Post: October 10th, 2003, 12:05 AM
  5. Design problem: how to respect stylesheets?
    By zeroGravitas in forum HTML Programming
    Replies: 0
    Last Post: February 3rd, 2001, 03:24 AM

IMN logo majestic logo threadwatch logo seochat tools logo