Answers for "how to make a div fixed css"

CSS
1

make a fixed page css

body {
  overflow-x: hidden;
}

  /* MORE OPTIONS : - 
    overflow-x: auto;
    overflow-x: scroll;
    overflow-x: visible;
  */
Posted by: Guest on March-15-2021
1

fixed within the div css

#wrapper { width: 300px; background: orange; margin: 0 auto; position: relative; }
#feedback { position: fixed; right: 0; top: 120px; }

<div id="wrapper">
    ...
    <a id="feedback" href="#">Feedback</a>
</div>
Posted by: Guest on October-21-2020

Browse Popular Code Answers by Language