By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,057 Members | 1,407 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,057 IT Pros & Developers. It's quick & easy.

IE not applying styles in table cells

P: n/a
Jaz

Is there a reason why IE wont apply styles on table cells? Either I
shouldn't do this, I've got an error somewhere, or IE has a bug or
doesn't support it. (Opera and Moz render okay)

Since I've Googled for a few hours and looked this up on a number of
CSS sites and found nothing, I assume I have an error. Note that when
I embed the styles into the head I see the same result. Here's the
page: http://harbell.net/elcanco/order.html

Any suggestions?
TIA
(Please excuse the 'burp' when replying)
Jul 20 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Jaz wrote on 21 jan 2004 in comp.infosystems.www.authoring.stylesheets:
Is there a reason why IE wont apply styles on table cells?


YOU can apply styles on table cells.
Only styles are not INHERITED into a table.

<style>
body {font-size:200%;}
TD {color:green;}
..smalltr td {font-size:80%;}
</style>
this is 200%
<table>
<tr class="smalltr"><td>smallgreen80%</td><td>smallgreen80%</td></tr>
<tr><td>green100%</td><td>green100%</td></tr>
</table>

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jul 20 '05 #2

P: n/a
Jaz <ha*****@beerburp.com> wrote:

Is there a reason why IE wont apply styles on table cells? Either I
shouldn't do this, I've got an error somewhere, or IE has a bug or
doesn't support it. (Opera and Moz render okay)

Since I've Googled for a few hours and looked this up on a number of
CSS sites and found nothing, I assume I have an error. Note that when
I embed the styles into the head I see the same result. Here's the
page: http://harbell.net/elcanco/order.html


UL LI {
color: #660000";
}

See that stray double quote?

Everything after that is being ignored.

The CSS Validator tried, in its own way, to tell you this:
http://jigsaw.w3.org/css-validator/v...1&profile=css2

Now all you need to do is clean up the rest of the code (get rid of
the remaining presentational HTML, the spacer gifs, etc., etc.). ;-)

Steve

--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor

Steve Pugh <st***@pugh.net> <http://steve.pugh.net/>
Jul 20 '05 #3

P: n/a
Jaz
UL LI {
color: #660000";
}

See that stray double quote?

Everything after that is being ignored.
Now all you need to do is clean up the rest of the code (get rid of
the remaining presentational HTML, the spacer gifs, etc., etc.). ;-)

Steve


THANKS STEVE! That was it! Since Opera and Moz ignored the error, I
thought it might be incompatability problem, but I humbly regress :)
-Jaz
(Please excuse the 'burp' when replying)
Jul 20 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.