diff options
author | Jasper Ras <jras@hostnet.nl> | 2025-05-06 23:09:23 +0200 |
---|---|---|
committer | Jasper Ras <jras@hostnet.nl> | 2025-05-06 23:09:23 +0200 |
commit | 78211f96953bc1a63570f2430cee4ad92c841ce4 (patch) | |
tree | 614db0456636442c7ef250f106f9f8b1d04e01e6 /CSS.md | |
parent | bb5c734d7445097e94c4a602f5ce066a836dbead (diff) |
vault backup: 2025-05-06 23:09:23
Diffstat (limited to 'CSS.md')
-rw-r--r-- | CSS.md | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -0,0 +1,14 @@ +--- +tags: + - css +--- +CSS is used to style [[HTML]]. + +Three ways to load: +- `<link rel="stylesheet" href="pathto.css">` +- `<style>css content</style>` +- or style attributes on elements + +Link is preferred: easier to work with everything in 1 place; browser can cache file. + +Both link and style blocks should go in the `<head>` to prevent repainting of elements.
\ No newline at end of file |