From 98587d1d277a4fb85118267223cae5cbf7384571 Mon Sep 17 00:00:00 2001 From: gtmnayan <50981692+gtm-nayan@users.noreply.github.com> Date: Tue, 12 Apr 2022 19:56:26 +0545 Subject: [PATCH] Fix title Co-authored-by: Tan Li Hau --- .../tutorial/13-advanced-styling/03-inline-styles/text.md | 2 +- .../tutorial/13-advanced-styling/03-style-directive/text.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/site/content/tutorial/13-advanced-styling/03-inline-styles/text.md b/site/content/tutorial/13-advanced-styling/03-inline-styles/text.md index fadf34a2c5..f558958358 100644 --- a/site/content/tutorial/13-advanced-styling/03-inline-styles/text.md +++ b/site/content/tutorial/13-advanced-styling/03-inline-styles/text.md @@ -1,5 +1,5 @@ --- -title: Inline styles and the style directive +title: Inline styles --- Apart from adding styles inside style tags, you can also add styles to individual elements using the style attribute. Usually you will want to do styling through CSS, but this can come in handy for dynamic styles, especially when combined with CSS custom properties. diff --git a/site/content/tutorial/13-advanced-styling/03-style-directive/text.md b/site/content/tutorial/13-advanced-styling/03-style-directive/text.md index 34fa9881a1..0e2ec87bfa 100644 --- a/site/content/tutorial/13-advanced-styling/03-style-directive/text.md +++ b/site/content/tutorial/13-advanced-styling/03-style-directive/text.md @@ -1,5 +1,5 @@ --- -title: Inline styles and the style directive +title: The style directive --- Being able to set css properties dynamically is nice, however this can get unwieldly if you have to write a long string, and mistakes like missing any of the semicolons could make the whole string invalid. Therefore, Svelte provides a nicer way to write inline styles with the style directive.