Tell us what’s happening:
I am trying to apply style from the CSS on the HTML element, but it has no effect. I tried different approaches (by using class and by using element’s ID).
Problem keeps resurfacing (yesterday I solved it by accident), so I really need to understand what is going on.
Many thanks.
P.S. I tried moving #email styling inside the footer parentheses. Also tried placing “display: flex” inside #email styling.
Your code so far
HTML:
<!---code--->
<footer>
<form id="form" action=" https://www.freecodecamp.com/email-submit">
<input
name="email"
id="email"
type="email" placeholder="Enter e-mail"
required
/>
<button type="submit">Submit</button>
</form>
</footer>
CSS code:
<!---code--->
footer {
display:flex;
}
#email {
align-items: end;
}
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.135 Safari/537.36
.
Challenge: Build a Product Landing Page
Link to the challenge: