Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

JavaScript

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.

Chase

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!