You may be looking for position: fixed
.
Works everywhere except IE6 and many mobile devices.
More Related Contents:
- Make headings (h1, h2, …) inherit style from body
- How can I vertically align elements in a div?
- Image inside div has extra space below the image
- Does UL have default margin or padding [duplicate]
- Why doesn’t the height of a container element increase if it contains floated elements?
- Text in Border CSS HTML
- How can I “disable” zoom on a mobile web page?
- How can I scale an entire web page with CSS?
- CSS margin adds space outside parent element [duplicate]
- Place text after dots inline with the second line of text overflow ellipsis
- How do I fit an image (img) inside a div and keep the aspect ratio?
- Flexbox alternative for IE9
- Fallback for CSS attributes without unit
- Center Triangle at Bottom of Div
- Add a pipe separator after items in an unordered list unless that item is the last on a line
- CSS display none and opacity animation with keyframes not working
- Table headers position:sticky and border issue
- Chrome: Automatic shift of web elements
- Linethrough/strikethrough a whole HTML table row
- How to make image caption width to match image width?
- Why can’t I use a heading tag inside a p tag and style it with CSS?
- 5 images symmetrically seperated with diagonal lines
- Extra space under textarea, differs along browsers
- How to align texts inside of an input?
- Border around tr element doesn’t show?
- Is it possible to specify a starting number for an ordered list?
- CSS: display:block; vs display:table;
- How do I make a text input non-editable?
- Create wavy borders in CSS for top and bottom borders
- Prevent ligatures in Safari (Mavericks/iOS7) via CSS