Skip to content

Commit 898bdd4

Browse files
committed
Reformmated comment spacing to make easier to read
1 parent bbac4dc commit 898bdd4

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

Pretty_CSS_Checkbox.code-workspace

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"folders": [
3+
{
4+
"path": "."
5+
}
6+
]
7+
}

index.html

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,18 @@
88
</head>
99

1010
<body>
11-
<!-- Checkbox input tags CANNOT be styled on their own. But we CAN style label tags. So, we use the label tag below to act as a container for our checkboxes. -->
11+
<!-- Checkbox input tags CANNOT be styled on their own. But we CAN style label tags. So, we use the label tag below to act as a container for our checkboxes. Then, we apply styles to the label tag. -->
1212

13-
<!-- The label tag will contain both the hidden checkbox (makes the checkbox work) and the visible 'checkbox' (which is really just a styled span tag sitting on top of the original checkbox. -->
1413
<label class="form__label">
14+
<!-- The label tag will contain both the hidden checkbox (makes the checkbox work) and the visible 'checkbox' (which is really just a styled span tag sitting on top of the original checkbox. -->
15+
1516
<input type="checkbox" class="form__checkbox-hidden" />
16-
<!-- Our span tag, pretending to be a checkbox. -->
17+
18+
<!-- Below is the span tag, pretending to be a checkbox. It doesn't need to have anything in it. The text after the closed span tag will be what's next to the checkbox. -->
19+
1720
<span class="form__checkbox-visible"></span> I agree to the terms of use
21+
22+
<!-- Don't forget to close your label tag! -->
1823
</label>
1924
</body>
2025
</html>

0 commit comments

Comments
 (0)