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! While you're at it, check out some resources Treehouse students have shared here.
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 trialChase Zimmerman
4,139 PointsjQuery 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
9,767 PointsIt'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.
Chase Zimmerman
4,139 PointsChase Zimmerman
4,139 PointsThank 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!