mirror of
https://github.com/phuoc-ng/csslayout.git
synced 2025-08-21 21:26:15 +02:00
feat: Add file names to snippets
This commit is contained in:
@@ -9,7 +9,7 @@ title: Floating label
|
||||
|
||||
## HTML
|
||||
|
||||
```html
|
||||
```html index.html
|
||||
<div class="floating-label">
|
||||
<!-- The input -->
|
||||
<input placeholder="Placeholder" class="floating-label__input" />
|
||||
@@ -21,7 +21,7 @@ title: Floating label
|
||||
|
||||
## CSS
|
||||
|
||||
```css
|
||||
```css styles.css
|
||||
.floating-label {
|
||||
border: 1px solid #d1d5db;
|
||||
border-radius: 0.25rem;
|
||||
@@ -115,3 +115,7 @@ placeholder of input isn't shown
|
||||
</div>
|
||||
```
|
||||
</Playground>
|
||||
|
||||
## See also
|
||||
|
||||
- Explore some ways to [animate a floating label](https://phuoc.ng/collection/css-animation/floating-label).
|
||||
|
Reference in New Issue
Block a user