DEV Community

Discussion on: Position is Everything

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