Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community!

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial


jQuery fadeIn Help!

I am making a website and trying to use jQuery to fade in two divs that I would like to display as inline-block. I have bother the divs on the same line but when I make them display:none and have jQuery fade them in they display in different lines.

Any help is appreciated.


1 Answer

Matt Campbell
Matt Campbell
9,767 Points

It'll be your css at fault. Make sure they don't exceed the width of the line/containing div and remember that borders add to the width. That's what I think it'll be anyway.

Thank you, I will do this in the future although I have made a solution that works out better by using the animation function to fade them in by changing the opacity.

Thanks for the help!