x
 
1
<!DOCTYPE html>
2
<title>Color Example</title>
3
<style>
4
    div {
5
        padding: 20px;
6
        margin: 20px;
7
    }
8
    .textColor {
9
        color: #CD5C5C;
10
        background-color: white;
11
    }
12
    .borderColor {
13
        border-width: 3px;
14
        border-style: solid;
15
        border-color: #CD5C5C;
16
    }
17
    .backgroundColor {
18
        background-color: #CD5C5C;
19
        color: white;
20
    }
21
    .backgroundGradient {
22
        background: linear-gradient(to bottom, white, #CD5C5C);
23
        color: white;
24
    }
25
26
    .lighterColor {
27
        background: #DC8C8C;
28
    }
29
    .darkerColor {
30
        background: #8F4040;
31
    }
32
    .lighterColor > p, 
33
    .darkerColor > p {
34
        color: black;
35
        background: white;
36
        padding: 3px;
37
        border-radius: 3px;
38
        display: inline-block;
39
    }
40
41
</style>
42
<div class="textColor borderColor">
43
    <h1>Testing Text in #CD5C5C</h1>
44
    <p>This text has been styled with a color of #CD5C5C.</p>
45
    <p>The border is also uses #CD5C5C.</p>
46
    <p>Try changing the values to see how it affects the output.</p>
47
    <p>And see this color applied to the <a href="/html/codes/color/color-tester.cfm?hexColor=CD5C5C">Color Tester</a>.</p>
48
</div>
49
<div class="backgroundColor">
50
    <h1>Testing a background color of #CD5C5C.</h1>
51
    <p>This has a background color of #CD5C5C.</p>
52
    <p>Try changing the values to see how it affects the output.</p>
53
</div>
54
<div class="backgroundGradient">
55
    <h1>Testing a background gradient.</h1>
56
    <p>This has a background gradient going between white and #CD5C5C.</p>
57
    <p>Try changing the values to see how it affects the output.</p>
58
</div>
59
60
<div class="lighterColor">
61
    <p>Lighter color: #DC8C8C</p>
62
</div>
63
<div class="darkerColor">
64
    <p>Darker color: #8F4040</p>
65
</div>