I’m working on this project Responsive Web Design Projects - Build a Product Landing Page.
I am having trouble making my header stick to the top of the view port.
And the submit button part working fine but I’m being shown an error.
Here’s my codepen link https://codepen.io/abdul-grey/pen/PdbWpQ
It’s driving me nuts.
Really need help here.
you need to add in css
position: fixed; to your header .
you forgot to add the name attribute in
<input type="email" id="email" placeholder="EMAIL" required>
You missed the name attribute for your input type=“email” element
<input type="email" id="email" placeholder="EMAIL" required> ex:
<input type="" name="">
Apply position: fixed to your #navbar and make it top and right to 0
I thought I need to make the whole header fixed. The tweak worked.
My code survived.