W3C home > Mailing lists > Public > www-style@w3.org > July 2007

Re: Should 'display: none' be handled by 'visibility'?

From: David Dorward <david@dorward.me.uk>
Date: Fri, 27 Jul 2007 13:32:16 +0100
Message-Id: <E5FB2F82-BA1B-4572-8C81-4C2E5F16A0BE@dorward.me.uk>
To: www-style@w3.org

On 27 Jul 2007, at 12:18, Markus Jonsson wrote:
> I'm not sure if this has been discussed before, but the display  
> property has a minor problem. Often, {display: none} is used with  
> dynamic
> html, where an element could show or hide on demand. Hiding is  
> easy, but once you need to reshow the element, you need to know the
> appropriate display mode.

No you don't. If it is set with inline style then you can set the  
property to an empty string. If it is set via a stylesheet, then you  
just need to construct your style rules carefully so that you can  
alter the className property so the selector no longer matches.


-- 
David Dorward
http://dorward.me.uk/
http://blog.dorward.me.uk/
Received on Friday, 27 July 2007 12:32:37 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:51 GMT