Get the code checked


#1
.nav a{
    color: #5a5a5a;
    font-size:24px;
    font-weight:bold;
    padding-top:14px;
    padding-left:10px;
        padding-right:10px;
    padding-bottom:14px;
    text-transform:uppercase;
}
.jumbotron{
    background-image: url('https://goo.gl/04j7Nn');
    height:500px;};
   
 .jumbotron p{
        color: #fff;
        font-size:20px;}

what is problem with this code?


#2

Please format your post as I have done (select entire code block; press Ctrl+Shift+C) from next time. Thanks! :smile:
Could you please post the exercise link, as well as the error you are getting? Thanks!


#3

https://www.codecademy.com/courses/web-beginner-en-4lw13/0/5?content_from=make-a-website%3Acss-properties-box


#4

i have sent you the link
it is telling me Oops, try again. Set the color of the p element inside <div class="jumbotron">..</div> to #fff?


#5

Please format your post as I have done (select entire code block; press Ctrl+Shift+C) from next time. Thanks! :smile:

A semicolon in this rule is causing you the trouble. Find and remove it, and you are good to go :smile:


#6

well thats not a problem it is a null statement...moreover it is not showing any problem in this section
well these are the instructions:
Instructions
Make a new CSS rule that selects the p element inside

..
.
Set the color to #fff
Set the font-size to 20px
and heres the code i have written for this:
.jumbotron p{
color: #fff;
font-size:20px;}

And then it is showing me the error:
Oops, try again. Set the color of the p element inside

..
to #fff

#7

CSS is a markup language, not a language like Java that would interpret ; to be a null statement. It causes the CSS parser to stop at that semicolon, since it's invalid css, and so the rest of the rules lying beneath that semicolon are simply ignored.


#8

okkie.............thankyou so much :relaxed: