Skip to content

Commit a8f2f82

Browse files
committed
New layout draft for Typography tutorial, part 14
1 parent 5af5ad8 commit a8f2f82

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

content/static/tutorials/typography/index.html

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,16 +39,12 @@ <h3>Draw text</h3>
3939
text("LAX", 0, 40); // Write "LAX" at coordinate (0,40)
4040
text("AMS", 0, 70); // Write "AMS" at coordinate (0,70)
4141
text("FRA", 0, 100); // Write "FRA" at coordinate (0,100)
42-
fill(0);
43-
text("LAX", 0, 40); // Write "LAX" at coordinate (0,40)
44-
text("AMS", 0, 70); // Write "AMS" at coordinate (0,70)
45-
text("FRA", 0, 100); // Write "FRA" at coordinate (0,100)
4642
</pre>
4743
</td>
4844
</tr>
4945
</table>
5046

51-
<p>&nbsp;</p>
47+
<hr />
5248

5349
<table style="width: 650">
5450
<tr>
@@ -65,7 +61,7 @@ <h3>Draw text</h3>
6561
</tr>
6662
</table>
6763

68-
<p>&nbsp;</p>
64+
<hr />
6965

7066
<table style="width: 650">
7167
<tr>
@@ -81,7 +77,7 @@ <h3>Draw text</h3>
8177
</tr>
8278
</table>
8379

84-
<p>&nbsp;</p>
80+
<hr />
8581

8682
<table style="width: 650">
8783
<tr>
@@ -106,7 +102,7 @@ <h3>Draw text</h3>
106102
Another version of text() draws the characters inside a rectangle. In this use, the second and third parameters define the position of the upper-left corner of the box and fourth and fifth parameters define the width and height of the box. If the length of the text exceeds the dimensions of the defined box, the text will not display.
107103
</p>
108104

109-
<table style="width: 650" border="1">
105+
<table style="width: 650">
110106
<tr>
111107
<td style="width: 120px; float:left;"><img src="imgs/12_05.png" style="width: 100px; height: 100px;"></td>
112108
<td style="width: 530px;">
@@ -117,7 +113,11 @@ <h3>Draw text</h3>
117113
</pre>
118114
</td>
119115
</tr>
116+
</table>
120117

118+
<hr />
119+
120+
<table style="width: 650">
121121
<tr>
122122
<td style="width: 120px; float:left;"><img src="imgs/12_06.png" style="width: 100px; height: 100px;"></td>
123123
<td style="width: 530px;">

css/style.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1135,7 +1135,8 @@ h2 { margin-bottom: 0; margin-top: 0;}
11351135
#Tutorials .onecol { clear: both; }
11361136
#Tutorials table {
11371137
/*width: 687px;*/
1138-
margin-top: 0px;
1138+
margin-top: 0px;
1139+
margin-bottom: 20px;
11391140
border-collapse:collapse;
11401141
}
11411142

0 commit comments

Comments
 (0)