Skip to content

Commit 66a3138

Browse files
committed
change bottom right positioning offset example to use new syntax
1 parent fb2a077 commit 66a3138

2 files changed

Lines changed: 8 additions & 21 deletions

File tree

css3-background/Overview.html

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1097,13 +1097,11 @@ <h3 id=the-background-position><span class=secno>3.6 </span>The
10971097
</div>
10981098

10991099
<div class=example>
1100-
<p>With the &lsquo;<code class=css>calc()</code>&rsquo; notation from the
1101-
Values and Units module <a href="#CSS3VAL"
1102-
rel=biblioentry>[CSS3VAL]<!--{{CSS3VAL}}--></a>, background positions can
1103-
also be relative to other corners than the top left. E.g., the following
1104-
puts the background image 10px from the bottom and 3em from the right:
1100+
<p>Background positions can also be relative to other corners than the top
1101+
left. E.g., the following puts the background image 10px from the bottom
1102+
and 3em from the right:
11051103

1106-
<pre>background-position: calc(100% - 3em) calc(100% - 10px)</pre>
1104+
<pre>background-position: right 3em bottom 10px</pre>
11071105
</div>
11081106

11091107
<p>See the section <a href="#layering">“Layering multiple background
@@ -3855,16 +3853,6 @@ <h3 class=no-num id=other>Other references</h3>
38553853
W3C Working Draft. (Work in progress.)</dd>
38563854
<!---->
38573855

3858-
<dt id=CSS3VAL>[CSS3VAL]
3859-
3860-
<dd>H&#229;kon Wium Lie; Chris Lilley. <a
3861-
href="http://www.w3.org/TR/2006/WD-css3-values-20060919"><cite>CSS3
3862-
Values and Units.</cite></a> 19 September 2006. W3C Working Draft. (Work
3863-
in progress.) URL: <a
3864-
href="http://www.w3.org/TR/2006/WD-css3-values-20060919">http://www.w3.org/TR/2006/WD-css3-values-20060919</a>
3865-
</dd>
3866-
<!---->
3867-
38683856
<dt id=RFC2854>[RFC2854]
38693857

38703858
<dd>D. Connolly; L. Masinter. <a

css3-background/Overview.src.html

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -758,12 +758,11 @@ <h3>The 'background-position' property</h3>
758758
</div>
759759

760760
<div class=example>
761-
<p>With the 'calc()' notation from the Values and Units module
762-
[[CSS3VAL]], background positions can also be relative to other
763-
corners than the top left. E.g., the following puts the background
764-
image 10px from the bottom and 3em from the right:
761+
<p>Background positions can also be relative to other corners than the
762+
top left. E.g., the following puts the background image 10px from the
763+
bottom and 3em from the right:
765764

766-
<pre>background-position: calc(100% - 3em) calc(100% - 10px)</pre>
765+
<pre>background-position: right 3em bottom 10px</pre>
767766
</div>
768767

769768
<p>See the section <a href="#layering">“Layering multiple background

0 commit comments

Comments
 (0)