473,385 Members | 1,901 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

IE not applying styles in table cells

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
3 3632
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Andrew Thompson | last post by:
How do I specify a CSS rule such that it applies to <td> & <th> tags that are contained within (are children of? ..is that the correct term) a <table> who's style is class="element"? Vis....
7
by: sasquatch | last post by:
Hi, I've a a site with nested master pages and content pages. I tried using a theme with a stylesheet in the app_themes directory referencing it in the web.config file from a pages tag theme...
2
by: Tony | last post by:
I seem to remember being able to do this, but I can't seem to find out how I did it before... Basically, I have styles defined by class in a stylesheet, and I need to read the "width" style....
1
by: Shimon Sim | last post by:
I have a master page that has a table. The table represents a banner. I need to change background images for the cells depending on the page theme. I set up css and defined styles with background...
16
by: Giggle Girl | last post by:
Hi there, I have a nav tree similar to the XP Windows Explorer in behavior. It uses styles to underline a row on mouseover, and change the look of a row when clicked. Currently, it is working...
7
by: Kamal | last post by:
Hello all, I have a very simple html table with collapsible rows and sorting capabilities. The collapsible row is hidden with css rule (display:none). When one clicks in the left of the...
4
by: ashkaan57 | last post by:
Hi, I am working on an asp.net application that has a grid. When rendered, grids are translated into tables. I am having some problems applying styles to the this table. When I do a "View Source",...
2
by: PJ6 | last post by:
Is there a way of specifying the CSS class of all cells within a table without having to set the class attribute for each cell individually (server-side or client-side)? Paul
1
by: Constantine AI | last post by:
Here is the situation i am currently trying to update a sales order using PHP and javascript. When you click on the edit button it brings you a new site page with existing sales order details within....
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.