DEV Community

Discussion on: Position is Everything

Collapse
 
benibela profile image
Benito van der Zander

I had a lot of problems placing a non-scrolling navigation on my old personal website, because I wanted to support IE 6, but that did not support position: fixed

Collapse
 
thedevcristian profile image
Paul Castañeda • Edited

Unfortunately, the IE6 don't have the power to hold fixed position BUT we found a solution to that and you can try this code:

html, body {
   height: 100%;  /* to fixed the positioning of it's browser */
}

#your-id-selector {
   position: fixed !important;
   position: absolute; /* recommended for IE6 and above */
   top: 0;
}

Let me know if the code works for you. Have good one.

Reference: CSS-Tricks

Collapse
 
perpetualwar profile image
Srđan Međo

IE6? That's ridiculous. Devs should just stop supporting any IE in 2020, let alone IE6...

Collapse
 
benibela profile image
Benito van der Zander

It is an old page