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 trialOmar Elbaga
767 PointsWhy did "it's a trap?" slide from left to middle?
This was great, but I'm confused about how and why the it's a trap showed while sliding from the left top of the screen to the middle. Wasn't it supposed to just appear slowly while in place? What caused it to slide.
1 Answer
Michael Jurgensen
8,341 PointsHi Omar,
The reason why the text is sliding has nothing to do with jQuery. The text is sliding because of the styles.css file.
Delete the .warning code block in the style.css:
.warning {
border: 5px solid #e1dfbe;
width: 200px;
margin: 100px auto 20px;
border-radius: 5px;
padding: 20px 10px;
text-align: center;
font-size: 32px
}
Now the text will not slide.
I hope that helps.