Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old July 20th, 2005, 10:24 PM
Jaz
Guest
 
Posts: n/a
Default IE not applying styles in table cells


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)
  #2  
Old July 20th, 2005, 10:24 PM
Evertjan.
Guest
 
Posts: n/a
Default Re: IE not applying styles in table cells

Jaz wrote on 21 jan 2004 in comp.infosystems.www.authoring.stylesheets:[color=blue]
> Is there a reason why IE wont apply styles on table cells?[/color]

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)
  #3  
Old July 20th, 2005, 10:24 PM
Steve Pugh
Guest
 
Posts: n/a
Default Re: IE not applying styles in table cells

Jaz <harbell@beerburp.com> wrote:
[color=blue]
>
>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[/color]

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 <steve@pugh.net> <http://steve.pugh.net/>
  #4  
Old July 20th, 2005, 10:24 PM
Jaz
Guest
 
Posts: n/a
Default Re: IE not applying styles in table cells

[color=blue]
>UL LI {
>color: #660000";
>}
>
>See that stray double quote?
>
>Everything after that is being ignored.[/color]
[color=blue]
>
>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[/color]

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)
 

Bookmarks

Thread Tools

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

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles