Skip to content

Commit 58e9ef9

Browse files
committed
Argh, didn't notice that a large example image was inline with other text.
1 parent 7fb5c43 commit 58e9ef9

2 files changed

Lines changed: 7 additions & 6 deletions

File tree

css3-images/Overview.html

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -525,8 +525,10 @@ <h4 class=no-toc id=linear-gradient-syntax><span class=secno>7.1.1.
525525
the gradient-line from the rules above. This shows the starting and
526526
ending-point of the gradient-line, along with the actual gradient,
527527
produced by an element with &lsquo;<code class=css>background:
528-
linear-gradient(45deg, white, black);</code>&rsquo;. <img alt
529-
src=gradient-line-example.png></div>
528+
linear-gradient(45deg, white, black);</code>&rsquo;.
529+
<p><img alt src=gradient-line-example.png></p>
530+
531+
</div>
530532

531533
<h4 id=color-stop-syntax><span class=secno>7.1.2.
532534
</span><code>color-stop</code> Syntax</h4>
@@ -608,6 +610,7 @@ <h4 class=no-toc id=linear-gradient-examples><span class=secno>7.1.3.
608610
</div>
609611

610612
<div class=example>
613+
611614
<p>This gradient goes from the upper-left to the lower-right corner.</p>
612615

613616
<pre><code>linear-gradient(top left, yellow, blue);
@@ -616,7 +619,6 @@ <h4 class=no-toc id=linear-gradient-examples><span class=secno>7.1.3.
616619
linear-gradient(bottom right, blue, yellow);</code></pre>
617620

618621
<p><img alt="" src=linear2.png></p>
619-
620622
</div>
621623

622624
<div class=example>
@@ -641,7 +643,6 @@ <h4 class=no-toc id=linear-gradient-examples><span class=secno>7.1.3.
641643
</div>
642644

643645
<div class=example>
644-
645646
<p>Here we use the full background-position syntax to specify the
646647
direction of the gradient. Notice that in this example a substantial
647648
portion of the image is pure yellow and pure blue, because the starting
@@ -652,11 +653,11 @@ <h4 class=no-toc id=linear-gradient-examples><span class=secno>7.1.3.
652653
linear-gradient(left 20px top 30px, yellow, blue);</code></pre>
653654

654655
<p><img alt="" src=linear5.png></p>
656+
655657
</div>
656658
</div>
657659

658660
<div>
659-
660661
<h3 id=radial-gradients><span class=secno>7.2. </span>Radial Gradients</h3>
661662

662663
<p>A radial gradient is specified in a manner very similar to a linear

css3-images/Overview.src.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ <h4 class=no-toc><code>linear-gradient()</code> syntax</h4>
270270
<p>If both starting-point and ending-point are the same, then the gradient is just a solid color, defined by the last color-stop in the list. For example, "left top 90deg" will result in a solid-color gradient (since it has 90deg, the "ending corner" is the top-left, which is where it starts), as will "center" (to obtain the ending-point, you rotate the starting-point around the center - rotating the center around the center gives you the center).</p>
271271
<div class=example>
272272
This example illustrates visually how to calculate the gradient-line from the rules above. This shows the starting and ending-point of the gradient-line, along with the actual gradient, produced by an element with ''background: linear-gradient(45deg, white, black);''.
273-
<img src='gradient-line-example.png' alt>
273+
<p><img src='gradient-line-example.png' alt></p>
274274
</div>
275275
<h4><code>color-stop</code> Syntax</h4>
276276
<p>The <dfn><code>&lt;color-stop&gt;</code></dfn> stands for:</p>

0 commit comments

Comments
 (0)