mirror of
https://github.com/phuoc-ng/csslayout.git
synced 2025-08-12 17:14:19 +02:00
feat: Add file names to snippets
This commit is contained in:
@@ -9,7 +9,7 @@ title: Sticky header
|
||||
|
||||
## HTML
|
||||
|
||||
```html
|
||||
```html index.html
|
||||
<div>
|
||||
<header class="sticky-header__header">...</header>
|
||||
<main>...</main>
|
||||
@@ -18,7 +18,7 @@ title: Sticky header
|
||||
|
||||
## CSS
|
||||
|
||||
```css
|
||||
```css styles.css
|
||||
.sticky-header__header {
|
||||
/* Stick to the top */
|
||||
position: sticky;
|
||||
|
Reference in New Issue
Block a user