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 <ga...@crtaci.info> wrote:

>
> I think it would be better pratice to use either css(display:none)
> or .hide()
>
> On May 28, 6:58 pm, waseem sabjee <waseemsab...@gmail.com> wrote:
> > <script>
> > $(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);});
> > });
> >
> > </script>
> >
> > On Thu, May 28, 2009 at 6:02 PM, GaVrA <ga...@crtaci.info> wrote:
> >
> > > Probably better to use css for initial hiding. Something like this:
> >
> > > <div id="test" style="display:none"></div>
> >
> > > $(function(){
> > > $('#test').fadeIn();
> > > });
> >
> > > On May 28, 4:04 pm, Karl Swedberg <k...@englishrules.com> 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 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 precise to suit your needs)
> >
> > > > --Karl
> >
> > > > ____________
> > > > Karl Swedbergwww.englishrules.comwww.learningjquery.com
>

Reply via email to