Advertisement
here2share

HTML border-radius property

Aug 13th, 2016
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 0.71 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <style>
  5. p {
  6.     text-indent: 15px;
  7. }
  8. p.normal {
  9.     border: 2px solid red;
  10. }
  11.  
  12. p.round1 {
  13.     border: 2px solid red;
  14.     border-radius: 5px;
  15. }
  16.  
  17. p.round2 {
  18.     border: 2px solid red;
  19.     border-radius: 8px;
  20. }
  21.  
  22. p.round3 {
  23.     border: 2px solid red;
  24.     border-radius: 12px;
  25. }
  26. </style>
  27. </head>
  28. <body>
  29.  
  30. <h2>The border-radius Property</h2>
  31. <p>This property is used to add rounded borders to an element:</p>
  32.  
  33. <p class="normal">Normal border</p>
  34. <p class="round1">Round border</p>
  35. <p class="round2">Rounder border</p>
  36. <p class="round3">Roundest border</p>
  37.  
  38. <p><b>Note:</b> The "border-radius" property is not supported in IE8 and earlier versions.</p>
  39.  
  40. </body>
  41. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement