x
 
1
<!DOCTYPE html>
2
<title>Color Example</title>
3
<style>
4
    div {
5
        padding: 20px;
6
        margin: 20px;
7
    }
8
    .textColor {
9
        color: MediumSlateBlue;
10
        background-color: white;
11
    }
12
    .borderColor {
13
        border-width: 3px;
14
        border-style: solid;
15
        border-color: MediumSlateBlue;
16
    }
17
    .backgroundColor {
18
        background-color: MediumSlateBlue;
19
        color: white;
20
    }
21
    .backgroundGradient {
22
        background: linear-gradient(to bottom, white, MediumSlateBlue);
23
        color: white;
24
    }
25
26
</style>
27
<div class="textColor borderColor">
28
    <h1>Testing Text in MediumSlateBlue</h1>
29
    <p>This text has been styled with a color of MediumSlateBlue.</p>
30
    <p>The border is also uses MediumSlateBlue.</p>
31
    <p>Try changing the values to see how it affects the output.</p>
32
    <p>And see this color applied to the <a href="/html/codes/color/color-tester.cfm?colorName=MediumSlateBlue">Color Tester</a>.</p>
33
</div>
34
<div class="backgroundColor">
35
    <h1>Testing a background color of MediumSlateBlue.</h1>
36
    <p>This has a background color of MediumSlateBlue.</p>
37
    <p>Try changing the values to see how it affects the output.</p>
38
</div>
39
<div class="backgroundGradient">
40
    <h1>Testing a background gradient.</h1>
41
    <p>This has a background gradient going between white and MediumSlateBlue.</p>
42
    <p>Try changing the values to see how it affects the output.</p>
43
</div>