while applying "position:fixed "property to my navbar element
then it’s getting aligned to the left side , please help me in fixing this…
https://codepen.io/kotesh_arya/pen/bGwGRXr
When you use fixed positioning the element is taken out of the normal flow and only takes up as much space as needed. So what do you think you could do using CSS to make the nav bar span across the entire width of the page?
I know. I’m just encouraging you to think about what you could do to make that happen. I’ve given you two hints already:
- You can do it using just CSS on the navbar
- You want to make the navbar span the entire width of the page
I could just come right out and tell you exactly what to do, but where would the fun be in that? Part of learning is experimenting to figure out how things work. I’m confident that with my two hints above you can figure it out.
thanks alott mann
i’ve just set the width of nav element to 100%, and that worked
hey man…
one final doubt
how to set my welcome-section’s height equal to my view-port’s height ?
I’m going to google this for you this time
Google: css view port height