From dd9566e96ef2a5220c50082e9f4ad8f148ad8487 Mon Sep 17 00:00:00 2001 From: The Coding Aviator <34807532+thecodingaviator@users.noreply.github.com> Date: Sat, 9 Mar 2019 19:40:54 +0530 Subject: [PATCH] Improved change the color using CSS guide article (#34284) * Update index.md * Update index.md --- .../change-the-color-of-text/index.md | 50 ++++++++++++++++--- 1 file changed, 42 insertions(+), 8 deletions(-) diff --git a/guide/english/certifications/responsive-web-design/basic-css/change-the-color-of-text/index.md b/guide/english/certifications/responsive-web-design/basic-css/change-the-color-of-text/index.md index b0f7f58884..834e8b7167 100644 --- a/guide/english/certifications/responsive-web-design/basic-css/change-the-color-of-text/index.md +++ b/guide/english/certifications/responsive-web-design/basic-css/change-the-color-of-text/index.md @@ -1,19 +1,53 @@ --- title: Change the Color of Text --- + +![:triangular_flag_on_post:](https://forum.freecodecamp.com/images/emoji/emoji_one/triangular_flag_on_post.png?v=3 ":triangular_flag_on_post:") Remember to use **`Read-Search-Ask`** if you get stuck. Try to pair program ![:busts_in_silhouette:](https://forum.freecodecamp.com/images/emoji/emoji_one/busts_in_silhouette.png?v=3 ":busts_in_silhouette:") and write your own code ![:pencil:](https://forum.freecodecamp.com/images/emoji/emoji_one/pencil.png?v=3 ":pencil:") + ## Change the Color of Text -You can change the color of text in CSS using the `color` property. +## ![:speech_balloon:](https://forum.freecodecamp.com/images/emoji/emoji_one/speech_balloon.png?v=3 ":speech_balloon:") Hint: 1 -### EXAMPLE +The color of text can be changed using the CSS `color` property. -``` -color: red; -``` +> _try to solve the problem now_ -## SOLUTION +## Spoiler Alert! -``` +![warning sign](//discourse-user-assets.s3.amazonaws.com/original/2X/2/2d6c412a50797771301e7ceabd554cef4edcd74d.gif) + +**Solution ahead!** + +```html

CatPhotoApp

+
+

Click here to view more cat photos.

+ + A cute orange cat lying on its back. + +
+

Things cats love:

+ +

Top 3 things cats hate:

+
    +
  1. flea treatment
  2. +
  3. thunder
  4. +
  5. other cats
  6. +
+
+ +
+ +
+ + +
+ + +
+
``` -