|
| 1 | +<!DOCTYPE html> |
| 2 | +<html lang="en"> |
| 3 | + <head> |
| 4 | + <meta charset="utf-8" /> |
| 5 | + <title>Box Model: Borders</title> |
| 6 | + <link rel="stylesheet" href="../styles.css" /> |
| 7 | + <style> |
| 8 | + .container { |
| 9 | + margin: 40px; |
| 10 | + padding: 20px; |
| 11 | + } |
| 12 | + |
| 13 | + .box { |
| 14 | + padding: 20px; |
| 15 | + background-color: lightgray; |
| 16 | + } |
| 17 | + </style> |
| 18 | + |
| 19 | + <style class="editable"> |
| 20 | + .container { |
| 21 | + border-top: 5px dotted green; |
| 22 | + border-right: 1px solid black; |
| 23 | + border-bottom: 20px double rgb(23,45,145); |
| 24 | + } |
| 25 | + |
| 26 | + .box { |
| 27 | + border: 1px solid #333333; |
| 28 | + border-top-style: dotted; |
| 29 | + border-right-width: 20px; |
| 30 | + border-bottom-color: hotpink; |
| 31 | + } |
| 32 | + </style> |
| 33 | + </head> |
| 34 | + |
| 35 | + <body> |
| 36 | + <section class="preview"> |
| 37 | + <div class="container"> |
| 38 | + <div class="box">Change my borders.</div> |
| 39 | + </div> |
| 40 | + </section> |
| 41 | + |
| 42 | + <textarea class="playable playable-css" style="height: 220px;"> |
| 43 | +.container { |
| 44 | + border-top: 5px dotted green; |
| 45 | + border-right: 1px solid black; |
| 46 | + border-bottom: 20px double rgb(23,45,145); |
| 47 | +} |
| 48 | + |
| 49 | +.box { |
| 50 | + border: 1px solid #333333; |
| 51 | + border-top-style: dotted; |
| 52 | + border-right-width: 20px; |
| 53 | + border-bottom-color: hotpink; |
| 54 | +} |
| 55 | + </textarea> |
| 56 | + |
| 57 | + <textarea class="playable playable-html" style="height: 80px;"> |
| 58 | +<div class="container"> |
| 59 | + <div class="box">Change my borders.</div> |
| 60 | +</div> |
| 61 | + </textarea> |
| 62 | + |
| 63 | + <div class="playable-buttons"> |
| 64 | + <input id="reset" type="button" value="Reset" /> |
| 65 | + </div> |
| 66 | + </body> |
| 67 | + <script src="../playable.js"></script> |
| 68 | +</html> |
0 commit comments