-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b54d43f
commit 18f9207
Showing
2 changed files
with
20 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
--- | ||
title: 'Quotes are "classy", CSS said' | ||
date: 2024-11-23 | ||
tags: [css] | ||
--- | ||
|
||
The `quotes` property is CSS's way of saying, "I'm cultured." | ||
|
||
Ancient, yet forgotten, it controls the quotation marks, because regular quotes... pff, too mainstream! Works on `q` elements, or `content` property (`open-quote` and `close-quote`): | ||
|
||
<q style="quotes: '«' '»'">I got fancy!</q> | ||
|
||
```html | ||
quotes: "«" "»" "‹" "›"; | ||
``` | ||
|
||
<q style='quotes: "«" "»" "‹" "›"'>Voilà! You mastered <q>the art of quotes</q> in French!</q> | ||
|
||
Selecting the text you'd see quotes are not part of it - they're automagically added. As per <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/quotes" target="_blank">the docs</a> you can define multiple open and closing pairs, so you can really go wild. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters