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) 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)
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/> 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) This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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>
|
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...
|
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...
|
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...
|
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
| |
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...
|
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">
|
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
|
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...
|
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...
|
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...
| |
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,...
|
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...
|
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...
|
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();...
|
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...
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
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...
| |