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 trial

JavaScript Using jQuery Plugins Add a Sticky Navigation Bar The Plugin Challenge

Gary Calhoun
Gary Calhoun
10,317 Points

I don't understand the last part...

"Make CSS change to make sure content doesn't appear underneath the sentence."

I am not sure what we are supposed to do for the last part but here is what I have and it seems to be working for adding and removing the email us

$('.sticky-two').sticky({
   topSpacing:60 
});

$('.sticky-two').on('sticky-start', function(){
                //adding the email us
  $('.sticky-two').append(' <a href="mailto:example@example.com">Email Us</a>');
});

$('.sticky-two').on('sticky-end', function(){
                //removing the email us
  $('a').filter(":contains('Email Us')").remove();
});
<h5 class="sticky-two">Want us to work on your project?</h5>

2 Answers

I think you just need to remove the opacity: .95; from the .is-sticky h5 in the existing CSS.

Gary Calhoun
Gary Calhoun
10,317 Points

Actually nevermind I see what it is referring to

.is-sticky .sticky-two {
  background-color:#e3e3e3;
}