HTML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignHTML Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old March 4th, 2000, 09:24 AM
xMonkey xMonkey is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2000
Posts: 16 xMonkey User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation 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.


Reply With Quote
  #2  
Old March 28th, 2000, 05:54 PM
gmiller gmiller is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2000
Posts: 5 gmiller User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation 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.

Reply With Quote
  #3  
Old March 29th, 2000, 06:50 AM
firepages's Avatar
firepages firepages is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Feb 2000
Location: Perth West Australia
Posts: 741 firepages User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9
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

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignHTML Programming > Weird problem with stylesheets


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway