Skip to content

Commit 5693a55

Browse files
Update index.html
1 parent a60a6df commit 5693a55

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

index.html

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -67,19 +67,19 @@ <h1><a href="./index.html" class="h1__link"></a><span class="cursor">_</span></h
6767
<p>In your CSS file, write the following code:</p>
6868
<pre class="code-block">
6969
<code>
70-
.box {
71-
width: 200px;
72-
height: 100px;
73-
background-color: #4E4E4E;
74-
margin: 20px;
75-
}
70+
.box {
71+
width: 200px;
72+
height: 100px;
73+
background-color: #4E4E4E;
74+
margin: 20px;
75+
}
7676
</code>
7777
</pre>
7878
<p>This code defines a <code class="inline-code">.box</code> class with a <code class="inline-code">width</code> of <code class="inline-code">200px</code>, a <code class="inline-code">height</code> of <code class="inline-code">100px</code>, a <code class="inline-code">background-color</code>, and a <code class="inline-code">margin</code> of <code class="inline-code">20px</code> on all sides. The margin creates space around the <code class="inline-code">.box</code> element, pushing it away from other elements and the edges of its container.</p>
7979
<p>Apply the .box class to an HTML element and view the result in your browser to see the margin effect:</p>
8080
<pre class="code-block">
8181
<code>
82-
&lt;div class="box"&gt;&lt;/div&gt;
82+
&lt;div class="box"&gt;&lt;/div&gt;
8383
</code>
8484
</pre>
8585
</section>
@@ -93,7 +93,7 @@ <h1><a href="./index.html" class="h1__link"></a><span class="cursor">_</span></h
9393
.box {
9494
width: 200px;
9595
height: 100px;
96-
background-color: #4E4E4E;
96+
background-color: #4E4E4E;
9797
padding: 20px;
9898
}
9999
</code>
@@ -102,7 +102,7 @@ <h1><a href="./index.html" class="h1__link"></a><span class="cursor">_</span></h
102102
<p>Apply the <code class="inline-code">.box</code> class to an HTML element and view the result in your browser to see the padding effect:</p>
103103
<pre class="code-block">
104104
<code>
105-
&lt;div class="box"&gt;Content inside the box&lt;/div&gt;
105+
&lt;div class="box"&gt;Content inside the box&lt;/div&gt;
106106
</code>
107107
</pre>
108108
<p>Select the CSS and HTML in your editor and refresh your browser to observe how the padding impacts the layout and the spacing within the element!</p>
@@ -115,14 +115,14 @@ <h1><a href="./index.html" class="h1__link"></a><span class="cursor">_</span></h
115115
<pre class="code-block">
116116
<code>
117117
:root {
118-
--primary-color: #3498db;
118+
--primary-color: #3498db;
119119
--padding-size: 20px;
120120
}
121121

122122
.box {
123123
width: 200px;
124124
height: 100px;
125-
background-color: var(--primary-color);
125+
background-color: var(--primary-color);
126126
padding: var(--padding-size);
127127
}
128128
</code>
@@ -131,7 +131,7 @@ <h1><a href="./index.html" class="h1__link"></a><span class="cursor">_</span></h
131131
<p>Apply the <code class="inline-code">.box</code> class to an HTML element and view the result in your browser to see the effect of the custom properties:</p>
132132
<pre class="code-block">
133133
<code>
134-
&lt;div class="box"&gt;Content inside the box&lt;/div&gt;
134+
&lt;div class="box"&gt;Content inside the box&lt;/div&gt;
135135
</code>
136136
</pre>
137137
<p>Select the CSS and HTML in your editor and refresh your browser to observe how the custom properties impact the styling of the element. Try changing the values of the variables to see how it updates the design throughout your stylesheet!</p>
@@ -173,7 +173,7 @@ <h1><a href="./index.html" class="h1__link"></a><span class="cursor">_</span></h
173173
<code>
174174
.container {
175175
display: grid;
176-
grid-template-columns: repeat(3, 1fr);
176+
grid-template-columns: repeat(3, 1fr);
177177
grid-gap: 10px;
178178
height: 200px;
179179
background-color: #4E4E4E;
@@ -190,12 +190,12 @@ <h1><a href="./index.html" class="h1__link"></a><span class="cursor">_</span></h
190190
<pre class="code-block">
191191
<code>
192192
&lt;div class="container"&gt;
193-
&lt;div class="item"&gt;1&lt;/div&gt;
194-
&lt;div class="item"&gt;2&lt;/div&gt;
195-
&lt;div class="item"&gt;3&lt;/div&gt;
196-
&lt;div class="item"&gt;4&lt;/div&gt;
197-
&lt;div class="item"&gt;5&lt;/div&gt;
198-
&lt;div class="item"&gt;6&lt;/div&gt;
193+
&lt;div class="item"&gt;1&lt;/div&gt;
194+
&lt;div class="item"&gt;2&lt;/div&gt;
195+
&lt;div class="item"&gt;3&lt;/div&gt;
196+
&lt;div class="item"&gt;4&lt;/div&gt;
197+
&lt;div class="item"&gt;5&lt;/div&gt;
198+
&lt;div class="item"&gt;6&lt;/div&gt;
199199
&lt;/div&gt;
200200
</code>
201201
</pre>

0 commit comments

Comments
 (0)