|
| 1 | +<!DOCTYPE html> |
| 2 | +<html lang="en"> |
| 3 | + <head> |
| 4 | + <meta charset="utf-8" /> |
| 5 | + <title>Position: Task 2</title> |
| 6 | + <link rel="stylesheet" href="../styles.css" /> |
| 7 | + <style> |
| 8 | + * { |
| 9 | + box-sizing: border-box; |
| 10 | + } |
| 11 | + .container { |
| 12 | + width: 550px; |
| 13 | + height: 400px; |
| 14 | + padding: .5em; |
| 15 | + border: 5px solid #ccc; |
| 16 | + overflow: auto; |
| 17 | + } |
| 18 | + .sidebar { |
| 19 | + background-color: rgb(207,232,220); |
| 20 | + padding: 1em; |
| 21 | + float: left; |
| 22 | + width: 150px; |
| 23 | + } |
| 24 | + .content { |
| 25 | + padding: 1em; |
| 26 | + margin-left: 160px; |
| 27 | + } |
| 28 | + </style> |
| 29 | + |
| 30 | + <style class="editable"> |
| 31 | + .container { |
| 32 | + |
| 33 | + } |
| 34 | + |
| 35 | + .sidebar { |
| 36 | + |
| 37 | + } |
| 38 | + </style> |
| 39 | + </head> |
| 40 | + |
| 41 | + <body> |
| 42 | + <section class="preview"> |
| 43 | + <div class="container"> |
| 44 | + <div class="sidebar"> |
| 45 | + <p>This is the sidebar. It should remain in position as the content scrolls.</p> |
| 46 | + </div> |
| 47 | + <div class="content"> |
| 48 | + <p>Veggies es bonus vobis, proinde vos postulo essum magis kohlrabi welsh onion daikon amaranth tatsoi tomatillo melon azuki bean garlic.</p> |
| 49 | + <p>Gumbo beet greens corn soko endive gumbo gourd. Parsley shallot courgette tatsoi pea sprouts fava bean collard greens dandelion okra wakame tomato. Dandelion cucumber earthnut pea peanut soko zucchini.</p> |
| 50 | + <p>Turnip greens yarrow ricebean rutabaga endive cauliflower sea lettuce kohlrabi amaranth water spinach avocado daikon napa cabbage asparagus winter purslane kale. Celery potato scallion desert raisin horseradish spinach carrot soko. Lotus root water spinach fennel kombu maize bamboo shoot green bean swiss chard seakale pumpkin onion chickpea gram corn pea. Brussels sprout coriander water chestnut gourd swiss chard wakame kohlrabi beetroot carrot watercress. Corn amaranth salsify bunya nuts nori azuki bean chickweed potato bell pepper artichoke.</p> |
| 51 | + </div> |
| 52 | + </div> |
| 53 | + |
| 54 | + </section> |
| 55 | + |
| 56 | + <textarea class="playable playable-css" style="height: 220px;"> |
| 57 | +.container { |
| 58 | + |
| 59 | +} |
| 60 | + |
| 61 | +.sidebar { |
| 62 | + |
| 63 | +} |
| 64 | + </textarea> |
| 65 | + |
| 66 | + <textarea class="playable playable-html" style="height: 500px;"> |
| 67 | +<div class="container"> |
| 68 | + <div class="sidebar"> |
| 69 | + <p>This is the sidebar. It should remain in position as the content scrolls.</p> |
| 70 | + </div> |
| 71 | + <div class="content"> |
| 72 | + <p>Veggies es bonus vobis, proinde vos postulo essum magis kohlrabi welsh onion daikon amaranth tatsoi tomatillo melon azuki bean garlic.</p> |
| 73 | + <p>Gumbo beet greens corn soko endive gumbo gourd. Parsley shallot courgette tatsoi pea sprouts fava bean collard greens dandelion okra wakame tomato. Dandelion cucumber earthnut pea peanut soko zucchini.</p> |
| 74 | + <p>Turnip greens yarrow ricebean rutabaga endive cauliflower sea lettuce kohlrabi amaranth water spinach avocado daikon napa cabbage asparagus winter purslane kale. Celery potato scallion desert raisin horseradish spinach carrot soko. Lotus root water spinach fennel kombu maize bamboo shoot green bean swiss chard seakale pumpkin onion chickpea gram corn pea. Brussels sprout coriander water chestnut gourd swiss chard wakame kohlrabi beetroot carrot watercress. Corn amaranth salsify bunya nuts nori azuki bean chickweed potato bell pepper artichoke.</p> |
| 75 | + </div> |
| 76 | +</div> |
| 77 | + </textarea> |
| 78 | + |
| 79 | + <div class="playable-buttons"> |
| 80 | + <input id="reset" type="button" value="Reset" /> |
| 81 | + </div> |
| 82 | + </body> |
| 83 | + <script src="../playable.js"></script> |
| 84 | +</html> |
0 commit comments