html - CSS positioning not working in the code editor -
i have simple problem. want navigation stay on top. know codes should be:
position: fixed; top: 0; left: 0;
but problem is,whenever i'm inserting in dev mode(where write codes), doesn't change, in inspect element, working. question supposed use(class name or id or whatever suggest) can edit code.
although question not clear me, think answers question:
give nav bar id in html:
<div id='nav-bar'></div> <!-- or <navigation> or <header> or whatever -->
in css
#nav-bar { position: fixed; top: 0; left: 0; }