-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuttons.html
106 lines (89 loc) · 5.06 KB
/
buttons.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
<!-- The <style> element contains CSS rules for styling the HTML elements -->
<style>
/* CSS rule for the subscribe button */
.subscribe-button {
background-color: rgb(200, 0, 0); /* Sets the background color to a shade of red */
color: white; /* Sets the text color to white */
border: none; /* Removes any border */
height: 35px; /* Sets the height of the button */
width: 105px; /* Sets the width of the button */
border-radius: 4px; /* Rounds the corners of the button */
cursor: pointer; /* Changes the cursor to a pointer when hovered over */
margin-right: 8px; /* Adds a right margin to create space between elements */
}
/* CSS rule for the join button */
.join-button {
background-color: rgb(255, 255, 255); /* Sets the background color to white */
color: blue; /* Sets the text color to blue */
border-color: blue; /* Sets the border color to blue */
border-style: solid; /* Sets the border style to solid */
border-width: 1px; /* Sets the border width */
height: 35px; /* Sets the height of the button */
width: 70px; /* Sets the width of the button */
border-radius: 4px; /* Rounds the corners of the button */
cursor: pointer; /* Changes the cursor to a pointer when hovered over */
}
/* CSS rule for the tweet button */
.tweet-button {
background-color: rgb(0, 132, 255); /* Sets the background color to a shade of blue */
color: rgb(255, 255, 255); /* Sets the text color to white */
border: none; /* Removes any border */
height: 35px; /* Sets the height of the button */
width: 75px; /* Sets the width of the button */
border-radius: 20px; /* Rounds the corners of the button to create a pill shape */
cursor: pointer; /* Changes the cursor to a pointer when hovered over */
font-weight: bold; /* Makes the text bold */
font-size: 15px; /* Sets the font size */
margin-left: 8px; /* Adds a left margin to create space between elements */
}
</style>
<!-- Button elements with class names that correspond to the CSS rules defined above -->
<button class="subscribe-button">
<!-- This is the text displayed on the subscribe button -->
SUBSCRIBE
</button>
<button class="join-button">
<!-- This is the text displayed on the join button -->
JOIN
</button>
<button class="tweet-button">
<!-- This is the text displayed on the tweet button -->
Tweet
</button>
<!-- Explanation -->
<!-- CSS (<style>): -->
<!-- The <style> element contains CSS rules that define the styling for the HTML elements. -->
<!-- Each CSS rule targets a specific class (.subscribe-button, .join-button, .tweet-button) and defines various style properties. -->
<!-- Subscribe Button (.subscribe-button): -->
<!-- background-color: rgb(200, 0, 0);: Sets the background color to a shade of red. -->
<!-- color: white;: Sets the text color to white. -->
<!-- border: none;: Removes any border. -->
<!-- height: 35px;: Sets the height of the button. -->
<!-- width: 105px;: Sets the width of the button. -->
<!-- border-radius: 4px;: Rounds the corners of the button. -->
<!-- cursor: pointer;: Changes the cursor to a pointer when hovered over. -->
<!-- margin-right: 8px;: Adds a right margin to create space between elements. -->
<!-- Join Button (.join-button): -->
<!-- background-color: rgb(255, 255, 255);: Sets the background color to white. -->
<!-- color: blue;: Sets the text color to blue. -->
<!-- border-color: blue;: Sets the border color to blue. -->
<!-- border-style: solid;: Sets the border style to solid. -->
<!-- border-width: 1px;: Sets the border width. -->
<!-- height: 35px;: Sets the height of the button. -->
<!-- width: 70px;: Sets the width of the button. -->
<!-- border-radius: 4px;: Rounds the corners of the button. -->
<!-- cursor: pointer;: Changes the cursor to a pointer when hovered over. -->
<!-- Tweet Button (.tweet-button): -->
<!-- background-color: rgb(0, 132, 255);: Sets the background color to a shade of blue. -->
<!-- color: rgb(255, 255, 255);: Sets the text color to white. -->
<!-- border: none;: Removes any border. -->
<!-- height: 35px;: Sets the height of the button. -->
<!-- width: 75px;: Sets the width of the button. -->
<!-- border-radius: 20px;: Rounds the corners of the button to create a pill shape. -->
<!-- cursor: pointer;: Changes the cursor to a pointer when hovered over. -->
<!-- font-weight: bold;: Makes the text bold. -->
<!-- font-size: 15px;: Sets the font size. -->
<!-- margin-left: 8px;: Adds a left margin to create space between elements. -->
<!-- Button Elements (<button>): -->
<!-- Each <button> element is given a class that matches the CSS class selectors defined in the <style> element. -->
<!-- The text inside each <button> element is what will be displayed on the button in the web page. -->