Mode:
Duration:
1
2
3
4
5
6
7
8
9
header {
position: sticky;
top: 0;
background: #007bff;
color: white;
padding: 1rem;
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
z-index: 1000;
}Coding works best on desktop or with an external keyboard.
header {
position: sticky;
top: 0;
background: #007bff;
color: white;
padding: 1rem;
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
z-index: 1000;
}Coding works best on desktop or with an external keyboard.
Demonstrates a sticky header that stays visible while scrolling.
header {
position: sticky;
top: 0;
background: #007bff;
color: white;
padding: 1rem;
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
z-index: 1000;
}CSS (Cascading Style Sheets) is a stylesheet language used to describe the presentation of HTML documents. It controls layout, colors, fonts, spacing, and visual effects, separating content structure from design.
Origin & Creator
Developed by Håkon Wium Lie in 1994 while working with Tim Berners-Lee at CERN.
Industrial Note
CSS is specialized for visual presentation and layout rather than content creation or logic processing.