Skip to content

Commit f81c0f6

Browse files
left justifying text
1 parent e02277d commit f81c0f6

File tree

3 files changed

+17
-81
lines changed

3 files changed

+17
-81
lines changed

webcamstudy/src/components/textTask.html

Lines changed: 5 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,12 @@
1717
.formatted-text {
1818
display: flex;
1919
flex-wrap: wrap;
20-
justify-content: center;
21-
text-align: justify;
20+
justify-content: flex-start; /* Align content left */
21+
text-align: left; /* Left-justify text */
2222
margin: 40px auto;
2323
max-width: 33%;
2424
width: 100%;
25+
line-height: 2; /* Double spacing */
2526
}
2627

2728
.word-block {
@@ -30,7 +31,7 @@
3031
}
3132

3233
.letter {
33-
font-size: 18px;
34+
font-size: 24px; /* Increased font size */
3435
}
3536

3637
.space {
@@ -123,38 +124,5 @@ <h3>Please Read the following message</h3>
123124
</script>
124125
</body>
125126
</html>
126-
<style>
127-
.textTask {
128-
text-align: center;
129-
font-family: Arial, sans-serif;
130-
}
131-
132-
h3 {
133-
margin: 40px 25% 0;
134-
}
135-
136-
.formatted-text {
137-
display: flex;
138-
flex-wrap: wrap;
139-
justify-content: center;
140-
text-align: justify;
141-
margin: 40px auto;
142-
max-width: 33%;
143-
width: 100%;
144-
line-height: 2; /* Double spacing */
145-
}
146-
147-
.word-block {
148-
display: inline-flex;
149-
flex-wrap: nowrap;
150-
}
151-
152-
.letter {
153-
font-size: 24px; /* Increased font size */
154-
}
155-
156-
.space {
157-
width: 4px;
158-
}
159-
</style>
127+
160128

webcamstudy/src/components/textTask2.html

Lines changed: 5 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,12 @@
1717
.formatted-text {
1818
display: flex;
1919
flex-wrap: wrap;
20-
justify-content: center;
21-
text-align: justify;
20+
justify-content: flex-start; /* Align content left */
21+
text-align: left; /* Left-justify text */
2222
margin: 40px auto;
2323
max-width: 33%;
2424
width: 100%;
25+
line-height: 2; /* Double spacing */
2526
}
2627

2728
.word-block {
@@ -30,13 +31,14 @@
3031
}
3132

3233
.letter {
33-
font-size: 18px;
34+
font-size: 24px; /* Increased font size */
3435
}
3536

3637
.space {
3738
width: 4px;
3839
}
3940
</style>
41+
4042
</head>
4143
<body>
4244
<div class="textTask">
@@ -99,37 +101,3 @@ <h3>Please Read the following message</h3>
99101
</script>
100102
</body>
101103
</html>
102-
<style>
103-
.textTask {
104-
text-align: center;
105-
font-family: Arial, sans-serif;
106-
}
107-
108-
h3 {
109-
margin: 40px 25% 0;
110-
}
111-
112-
.formatted-text {
113-
display: flex;
114-
flex-wrap: wrap;
115-
justify-content: center;
116-
text-align: justify;
117-
margin: 40px auto;
118-
max-width: 33%;
119-
width: 100%;
120-
line-height: 2; /* Double spacing */
121-
}
122-
123-
.word-block {
124-
display: inline-flex;
125-
flex-wrap: nowrap;
126-
}
127-
128-
.letter {
129-
font-size: 24px; /* Increased font size */
130-
}
131-
132-
.space {
133-
width: 4px;
134-
}
135-
</style>

webcamstudy/src/components/textTask3.html

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,31 +9,31 @@
99
text-align: center;
1010
font-family: Arial, sans-serif;
1111
}
12-
12+
1313
h3 {
1414
margin: 40px 25% 0;
1515
}
16-
16+
1717
.formatted-text {
1818
display: flex;
1919
flex-wrap: wrap;
20-
justify-content: center;
21-
text-align: justify;
20+
justify-content: flex-start; /* Align content left */
21+
text-align: left; /* Left-justify text */
2222
margin: 40px auto;
2323
max-width: 33%;
2424
width: 100%;
2525
line-height: 2; /* Double spacing */
2626
}
27-
27+
2828
.word-block {
2929
display: inline-flex;
3030
flex-wrap: nowrap;
3131
}
32-
32+
3333
.letter {
3434
font-size: 24px; /* Increased font size */
3535
}
36-
36+
3737
.space {
3838
width: 4px;
3939
}

0 commit comments

Comments
 (0)