473,796 Members | 2,872 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 3651
Jaz wrote on 21 jan 2004 in comp.infosystem s.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>smallgreen 80%</td><td>smallgre en80%</td></tr>
<tr><td>green10 0%</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*****@beerbu rp.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
3610
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. <table class="element"> <tr> <td>This with a style</td>
7
3509
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 attribute. This works for the content pages, but it doesn't seem able to apply the styles to the top master page even though I did set the master head tag to runat server. Is this by design? If so, what is the best way to apply styles to the top...
2
1886
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. obj.currentStyle.width works just fine in IE, but Firefox doesn't recognize it. document.defaultView.getComputedStyle(obj,null).getPropertyValue('width') gives me the actual width (just as obj.offsetWidth does), not the width style assigned by the...
1
1304
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 -image: url(...). I set up images in theme folder and it didn't work. Then I decided to move images to root and it didn't work either (the page in not in root. May be for root pages it would help but I can't put all pages in root anyway). Is...
16
2050
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 fine using CSS/Javascript, by calling functions that underline and highlight by passing in IDs. The problem is, I do not want to pass in IDs. Currently it has one the TDs to be changed, but I may need to add one for images (to change the
7
4829
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 expandable row, the hidden row is made visible with css. The problem is when i sort the rows, the hidden rows get sorted as well which i don't want and want to be moved (while sorting) relative to their parent rows. The following is my complete html code...
4
3692
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", this is what I see: <table cellspacing="0" cellpadding="3" border="0" id="ctl00_MainContent_SystemsGV" style="font-family:Arial;font-size: 9pt;width:100%;border-collapse:collapse;"> <tr class="gvHeader">
2
5035
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
5907
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. I am wanting the order lines to be within option boxes so they can modify the order if they wish. I created some javascript for the create sale site page which automatically assigned a price to a particular product once selected. Here is the code...
0
9679
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10223
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10172
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10003
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7546
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6785
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5441
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3730
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2924
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.