This forum is now read-only. Please use our new forums at discuss.codecademy.com.

About You Forum

View Course » View Exercise

202 points
5504a63c76b8fe932f004ed1_118768937
Submitted by
Daniel Warden
over 3 years ago

17/21 Set the input's "border" to "0".

Hi, I keep getting the error above.

    <!DOCTYPE html>
<head>
<style>
body {
    text-align: center;
    background: url("https://codecademy-content.s3.amazonaws.com/courses/web-beginner-en-3pc6w/images/splash.jpg");
    color: white;
    font-family: Helvetica;
    background-size: cover;
    background-position: 50% 50%;
    background-repeat: no-repeat;
    background-attachment: fixed;
}
p {
    font-size: 24px;
    {
input {
    border: 0;
}
</style>
</head>

<body>
<!-- I'm a comment. You won't actually see me on the web page.
     You should write your header in the line below me! -->
<img src="https://codecademy-content.s3.amazonaws.com/courses/web-beginner-en-3pc6w/images/avatar.jpg" height="250" width="250">DANIEL WARDEN</h1>
<p>Hi! I am learning how to make my own web site, so that I can learn some code and make use of these new skills.</p>

<input type="email" placeholder="Email">
<input type="submit">

</body>

1 vote

permalink

Hi Daniel,

Your p selector's closing } is backwards, so it doesn't close before your input selector begins. The effect of that is that the properties that you are trying to apply to your input tag isn't being recognized.

3698 points
55df2afa95e3787b9200005e_359368177
Submitted by
Judy
over 3 years ago

2 Comments

5504a63c76b8fe932f004ed1_118768937 Daniel Warden over 3 years ago

Thanks AlbionsRefuge - so simple. Was working on it quite late last night...

55df2afa95e3787b9200005e_359368177 Judy over 3 years ago

You're welcome Daniel.


0 votes

permalink

Does this forum validate the input? It's just that once I post my code it seems to take affect on the site? or is that just happening locally in my browser?

Thanks in advance for your input

202 points
5504a63c76b8fe932f004ed1_118768937
Submitted by
Daniel Warden
over 3 years ago

1 Comment

55df2afa95e3787b9200005e_359368177 Judy over 3 years ago

When you are in the editor there is a Code sample button, it looks like {}. You use that to format your code.