summaryrefslogtreecommitdiff
path: root/CSS.md
diff options
context:
space:
mode:
Diffstat (limited to 'CSS.md')
-rw-r--r--CSS.md14
1 files changed, 14 insertions, 0 deletions
diff --git a/CSS.md b/CSS.md
new file mode 100644
index 0000000..16cf2d5
--- /dev/null
+++ b/CSS.md
@@ -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