HighDots Forums  

table-cell

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss table-cell in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #11  
Old   
dhtml
 
Posts: n/a

Default Re: table-cell - 12-07-2008 , 01:47 PM






Jeff wrote:
Quote:
Ben C wrote:
On 2008-11-29, Jonathan N. Little <lws4art (AT) central (DOT) net> wrote:
Ben C wrote:


Quote:
There you're just removing it from the style attribute-- it will still
apply if it's in a CSS rule whose selector matches the element.

Sorry, I've been out of town...

It seems to me that if setting the style to empty works then it seems
like
Method addRule is not documented to work that way[1]. This would result
in unexpected results such as a javascript error, no effect, creates a
rule that is ignored because the property value is invalid, or shadows
the existing property.

Quote:
you should also be able to addRule/insertRule and set the css text
to empty.

I'm assuming you guys know about that, for those that don't, something
like this will add a rule to the end of your last stylesheet:

Use:-

td.some {
display: block;
display: table-cell;
}

User agents must ignore a declaration with an illegal value[2]. To IE,
table-cell is illegal, so it ignores that.

Garrett


[1]http://msdn.microsoft.com/en-us/library/aa358796(VS.85).aspx
[2]http://www.w3.org/TR/CSS21/syndata.html#ignore

--
comp.lang.javascript FAQ <URL: http://jibbering.com/faq/ >


Reply With Quote
Reply




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.