Skip to content

Commit 98e87a3

Browse files
author
Jihye Hong
committed
[css-round-display] Modify example code in EXAMPLE5 because of getting rid of 'position: polar'
1 parent a1557b0 commit 98e87a3

2 files changed

Lines changed: 77 additions & 17 deletions

File tree

css-round-display/Overview.bs

Lines changed: 40 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -299,19 +299,51 @@ An example as below shows the difference between the conventional coordinates an
299299
<div class='example'>
300300
The codes below show the difference between conventional coordinate system in the web and polar coordinate system when positioning elements.
301301

302-
Figure 6A might be the result of
302+
When there are elements like below:
303+
303304
<pre>
304305
&lt;body>
305-
&lt;div style="position: absolute; width: 100px; height: 100px; background-color: blue;">&lt;/div>
306-
&lt;div style="position: absolute; width: 50px; height: 50px; background-color: green;">&lt;/div>
306+
&lt;div id="box1">&lt;/div>
307+
&lt;div id="box2">&lt;/div>
307308
&lt;/body>
308309
</pre>
310+
311+
Then Figure 6A might be the result of
312+
<pre>&lt;style>
313+
314+
#box1 {
315+
position: absolute;
316+
width: 100px;
317+
height: 100px;
318+
background-color: blue;
319+
}
320+
#box2 {
321+
position: absolute;
322+
width: 50px;
323+
height: 50px;
324+
background-color: green;
325+
}
326+
&lt;/style>
327+
</pre>
328+
309329
Figure 6B might be the result of
310-
<pre>
311-
&lt;body>
312-
&lt;div style="position: absolute; polar-distance: 0%; width: 100px; height: 100px; background-color: blue;">&lt;/div>
313-
&lt;div style="position: absolute; polar-distance: 0%; width: 50px; height: 50px; background-color: green;">&lt;/div>
314-
&lt;/body>
330+
<pre>&lt;style>
331+
332+
#box1 {
333+
position: absolute;
334+
polar-distance: 0%;
335+
width: 100px;
336+
height: 100px;
337+
background-color: blue;
338+
}
339+
#box2 {
340+
position: absolute;
341+
polar-distance: 0%;
342+
width: 50px;
343+
height: 50px;
344+
background-color: green;
345+
}
346+
&lt;/style>
315347
</pre>
316348

317349
<br />

css-round-display/Overview.html

Lines changed: 37 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -405,19 +405,47 @@ <h2 class="heading settled" data-level="6" id="positioning-content"><span class=
405405
<p> In conventional coordinate system used in the web, the origin is positioned in the upper left corner of a containing block. In comparison, the default origin of polar coordinates is the center point of a containing block. Therefore different methods are required to deploy and transform elements, or set margin/padding values when using polar coordinates. </p>
406406
<p>An example as below shows the difference between the conventional coordinates and the polar coordinates when positioning elements.</p>
407407
<p></p>
408-
<div class="example" id="example-2fab54a1">
409-
<a class="self-link" href="#example-2fab54a1"></a> The codes below show the difference between conventional coordinate system in the web and polar coordinate system when positioning elements.
410-
<p>Figure 6A might be the result of</p>
408+
<div class="example" id="example-aba823c2">
409+
<a class="self-link" href="#example-aba823c2"></a> The codes below show the difference between conventional coordinate system in the web and polar coordinate system when positioning elements.
410+
<p>When there are elements like below:</p>
411411
<pre>&lt;body>
412-
&lt;div style="position: absolute; width: 100px; height: 100px; background-color: blue;">&lt;/div>
413-
&lt;div style="position: absolute; width: 50px; height: 50px; background-color: green;">&lt;/div>
412+
&lt;div id="box1">&lt;/div>
413+
&lt;div id="box2">&lt;/div>
414414
&lt;/body>
415+
</pre>
416+
<p>Then Figure 6A might be the result of</p>
417+
<pre>&lt;style>
418+
#box1 {
419+
position: absolute;
420+
width: 100px;
421+
height: 100px;
422+
background-color: blue;
423+
}
424+
#box2 {
425+
position: absolute;
426+
width: 50px;
427+
height: 50px;
428+
background-color: green;
429+
}
430+
&lt;/style>
415431
</pre>
416432
<p>Figure 6B might be the result of</p>
417-
<pre>&lt;body>
418-
&lt;div style="position: absolute; polar-distance: 0%; width: 100px; height: 100px; background-color: blue;">&lt;/div>
419-
&lt;div style="position: absolute; polar-distance: 0%; width: 50px; height: 50px; background-color: green;">&lt;/div>
420-
&lt;/body>
433+
<pre>&lt;style>
434+
#box1 {
435+
position: absolute;
436+
polar-distance: 0%;
437+
width: 100px;
438+
height: 100px;
439+
background-color: blue;
440+
}
441+
#box2 {
442+
position: absolute;
443+
polar-distance: 0%;
444+
width: 50px;
445+
height: 50px;
446+
background-color: green;
447+
}
448+
&lt;/style>
421449
</pre>
422450
<p><br></p>
423451
<div style="width: 700px; text-align:center">

0 commit comments

Comments
 (0)