Stuck on borders but 'get code' doesn't give me the answer


#1


https://www.codecademy.com/courses/learn-html-css/lessons/content/exercises/padding-ii?action=lesson_resume&link_content_target=interstitial_lesson


I'm not quite sure how to do this but have made an educated guess...this is obviously not correct, however when i click get code it doesn't come up with anything in style.css but says that it is correct. i really want to see how to do this so it doesn't cause me issues later. Below is my code....i have no idea whether it's correct or not :slight_smile:


banner-content {
  padding: 30px;
}

please help....thanks :smile:


#2

You forgot to add a # in front of banner-content.

When you need to define an id for a CSS selector, you add a #
When you need to define a class, you add a .

For example,

<div class="banner">  -------------------> .banner { } 
    <div id="banner-content"> -----------> #banner-content { }

Please note however that users are currently experiencing some issues with this course.
The CSS file doesn't show anymore.

Please report the bug.


#3

Thanks for your help @ghostlovescore. That makes a lot more sense now. :smiley:


#4

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.