- From: Colt Antonio Pini <Colt.Pini@nau.edu>
- Date: Tue, 27 Apr 2010 09:20:50 -0700
- To: Tab Atkins Jr. <jackalmage@gmail.com>
- CC: "www-style@w3.org" <www-style@w3.org>
The only problem with that is when coding in Visual Studio the way that the RequiredFeildValidator tag works is through that functionality, switching between display none and inline. In order to fix that problem I would need to go in and change the rendering JS in Visual studio. I agree that there are ways around this problem, and good ways around it, which I am going to have to do now, but just thought of this for a nice feature to have so that we wouldn't have to go through a work around. I am sure there are many more instances where this functionality would be nice to have. Colt -----Original Message----- From: Tab Atkins Jr. [mailto:jackalmage@gmail.com] Sent: Tuesday, April 27, 2010 8:51 AM To: Colt Antonio Pini Cc: www-style@w3.org Subject: Re: Display 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 16:22:08 UTC