Hi Guys,
I’m working on the landing page project and having issues with navbar and video. Here is the link to my code: https://codesandbox.io/s/landing-page-fcc-jbb89
-
I am trying to fix the navbar(id:header) at the top. Without the
position:fixed
, the items in navbar are centered when width goes below 600px and stays on left and right when width>600px.
The moment I useposition:fixed
, the navbar items overlaps with content below it and the navbar items position themselves at top left with fixed positioning.
Adding a margin is a solution to avoid overlapping but is there a better approach to deal with this? Also how do I center items at width<600px withposition:fixed
? -
I have added css to make the video element responsive but it goes way too big when width reaches more than 1000px wide. Any way to cap the width to let’s say 600px when browser window width>1000px without loosing the responsive behavior?
Thanks in advance guys,
Rahul