[jQuery] Re: Fade in from being invisible...

2009-05-28 Thread Karl Swedberg
I generally avoid using css for initial hiding because I want users who don't have JS or don't have it enabled to still have an opportunity to read the content. With display:none and JS off / CSS on, they wouldn't have that opportunity. --Karl Karl Swedberg www.englishrules.co

[jQuery] Re: Fade in from being invisible...

2009-05-28 Thread waseem sabjee
instead of display none i use this style .myclass { font-size:0!important; overflow-X:hidden!important; overflow-Y:hidden!important; width:0!important; height:0!Important; margin:0!important; padding:0!important; } On Thu, May 28, 2009 at 7:42 PM, GaVrA wrote: > > I think it would be better pr

[jQuery] Re: Fade in from being invisible...

2009-05-28 Thread GaVrA
I think it would be better pratice to use either css(display:none) or .hide() On May 28, 6:58 pm, waseem sabjee wrote: > > $(function() { > /* > Setting the time to 0 causes the element to advance to its' end state > instantly > */ > $("#mydiv").fadeOut(0); > > $("#mybutton").click(function() {

[jQuery] Re: Fade in from being invisible...

2009-05-28 Thread waseem sabjee
$(function() { /* Setting the time to 0 causes the element to advance to its' end state instantly */ $("#mydiv").fadeOut(0); $("#mybutton").click(function() { $("#mydiv").fadeIn(500); }); }); On Thu, May 28, 2009 at 6:02 PM, GaVrA wrote: > > Probably better to use css for initial hiding. Some

[jQuery] Re: Fade in from being invisible...

2009-05-28 Thread GaVrA
Probably better to use css for initial hiding. Something like this: $(function(){ $('#test').fadeIn(); }); On May 28, 4:04 pm, Karl Swedberg wrote: > On May 27, 2009, at 10:51 PM, mediumgrade wrote: > > > > > Simply question: > > > I want to have a DIV start by being invisible, then fade in b

[jQuery] Re: Fade in from being invisible...

2009-05-28 Thread Karl Swedberg
On May 27, 2009, at 10:51 PM, mediumgrade wrote: Simply question: I want to have a DIV start by being invisible, then fade in but I am not sure how to start in such a way that jQuery can make it fade in. Any help? Something like this? $('div').hide().fadeIn() (make the selector more prec