Skip to content

Commit afdfffe

Browse files
committed
Adjustments to CSS for Tutorials
1 parent 383e749 commit afdfffe

File tree

2 files changed

+16
-3
lines changed

2 files changed

+16
-3
lines changed

content/static/tutorials/2darray/index.html

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,21 @@ <h1>Two-Dimensional Arrays</h1>
1919
<br /><br />
2020
<em>(lettuce, tomatoes, salad dressing) and (steak, mashed potatoes, string beans) and (cake, ice cream, coffee)</em>
2121
<br /><br />
22-
In the case of an array, our old-fashioned one-dimensional array looks like this:
22+
In the case of an array, our old-fashioned one-dimensional array looks like this:<br />
23+
<br />
2324
<pre>
2425
int[] myArray = {0,1,2,3};
2526
</pre>
2627
<br />
2728
And a two-dimensional array looks like this:
29+
<br />
30+
<br />
2831
<pre>
2932
int[][] myArray = { {0,1,2,3}, {3,2,1,0}, {3,5,6,1}, {3,8,3,4} };
3033
</pre>
3134
<br />
32-
For our purposes, it is better to think of the two-dimensional array as a matrix. A matrix can be thought of as a grid of numbers, arranged in rows and columns, kind of like a bingo board. We might write the two-dimensional array out as follows to illustrate this point:
35+
For our purposes, it is better to think of the two-dimensional array as a matrix. A matrix can be thought of as a grid of numbers, arranged in rows and columns, kind of like a bingo board. We might write the two-dimensional array out as follows to illustrate this point: <br />
36+
<br />
3337
<pre>
3438
int[][] myArray = { {0, 1, 2, 3},
3539
{3, 2, 1, 0},
@@ -57,7 +61,8 @@ <h1>Two-Dimensional Arrays</h1>
5761
}
5862
</pre>
5963
<br />
60-
For a two-dimensional array, in order to reference every element, we must use two nested loops. This gives us a counter variable for every column and every row in the matrix.
64+
For a two-dimensional array, in order to reference every element, we must use two nested loops. This gives us a counter variable for every column and every row in the matrix.<br />
65+
<br />
6166
<pre>
6267
int cols = 10;
6368
int rows = 10;

css/style.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1097,6 +1097,14 @@ h2 { margin-bottom: 0; margin-top: 0;}
10971097
#Tutorials .colthree { width: 224px; float: left; margin-right: 20px; }
10981098
#Tutorials h2 { margin: 0 0 20px 0; font-size: 1em; }
10991099

1100+
#Tutorials p {
1101+
margin-top: 2.0em;
1102+
margin-bottom: 2.0em;
1103+
font-size : 1.0em;
1104+
font-weight : normal;
1105+
line-height : 2.0em;
1106+
}
1107+
11001108
/*#Tutorials h3 {
11011109
font-family : Verdana, Geneva, Arial, Helvetica, sans-serif;
11021110
font-size : 1.3em;

0 commit comments

Comments
 (0)