W3C home > Mailing lists > Public > www-style@w3.org > April 2010

Re: Display

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Tue, 27 Apr 2010 08:50:47 -0700
Message-ID: <p2wdd0fbad1004270850ud385550k3ad07bb8c5df0f3b@mail.gmail.com>
To: Colt Antonio Pini <Colt.Pini@nau.edu>
Cc: "www-style@w3.org" <www-style@w3.org>
On Mon, Apr 26, 2010 at 2:03 PM, Colt Antonio Pini <Colt.Pini@nau.edu> wrote:
>  It seems the convention to show / hide a validation tag is to change the
> inline style from display:none; to display:inline; This seems accurate
> enough because most validation is inline, but occasionally I have needed to
> add a display: block; to the element. When I need to do that the inline
> display overrides my block display. Putting a !important in the stylesheet
> will override the display:none;

This should be fixed in the javascript.  All you need to do is set
display:none when hiding it, and then *remove the display:none when
showing*.  Don't set it to some explicit value, just remove "none" (or
the whole @style attribute, whichever's simpler) and it will work as
desired.

~TJ
Received on Tuesday, 27 April 2010 15:51:47 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:26 GMT