inline-node.html 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>Inline Node styling test</title>
  6. <style>
  7. body {
  8. line-height: 200%;
  9. }
  10. .box {
  11. width: 150px;
  12. height: 200px;
  13. margin: 10px;
  14. padding: 5px;
  15. border: 1px solid black;
  16. }
  17. .highlight {
  18. background-color: orange;
  19. border-radius: 6px;
  20. }
  21. .bg-highlight {
  22. background-image: url("tile.png");
  23. color: white;
  24. border-radius: 6px;
  25. }
  26. .br-highlight {
  27. border: 2px solid green;
  28. border-radius: 6px;
  29. box-shadow: 4px 4px 4px darkgreen;
  30. }
  31. </style>
  32. </head>
  33. <body>
  34. Hello world <span class="highlight">this is some text</span> not in a box. <span class="bg-highlight">This text has a background</span> and <span class="br-highlight">this text has a shadow!</span>
  35. <div class="box" style="background-color: rgba(255, 0, 255, 0.5);">
  36. Hello world <span class="highlight">this is some text</span> in a box. <span class="bg-highlight">This text has a background</span> and <span class="br-highlight">this text has a shadow!</span>
  37. </div>
  38. <div class="box second">
  39. Hello world <span class="highlight">this is some text</span> in a box. <span class="bg-highlight">This text has a background</span> and <span class="br-highlight">this text has a shadow!</span>
  40. </div>
  41. <div style="background-color:red;width:3px">This text should only have a strip of red on the left</div>
  42. </body>
  43. </html>