Witam

Mam problem poradziłem sobie z lewym i prawym ale nie wiem jak zrobić środek jak na zdjęciu. Proszę was o pomoc.



  1. <!DOCTYPE html>
  2. <head>
  3. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  4. </head>
  5. body{
  6. text-align: center;
  7. }
  8.  
  9. h3{
  10. font-size: 60px;
  11. position: relative;
  12. display: inline-block;
  13. padding: 10px 30px 8px 30px;
  14. height: 80px;
  15. width: auto;
  16. background: #000;
  17. line-height: 80px;
  18. margin-bottom: 20px;
  19. font-family: 'Bitter', 'Trebuchet MS', Arial;
  20. text-shadow: 1px 1px 1px rgba(0,0,0,0.9);
  21. color: white;
  22.  
  23. }
  24.  
  25. h3::before{
  26. content: '';
  27. width: 0;
  28. height: 0;
  29. border-top: 38px solid transparent;
  30. border-bottom: 60px solid transparent;
  31. border-right: 60px solid black;
  32. position: absolute;
  33. left: -59px;
  34. top: 0px;
  35. background: red;
  36. }
  37. h3::after{
  38. content: '';
  39. width: 0;
  40. height: 0;
  41. border-top: 38px solid transparent;
  42. border-bottom: 60px solid transparent;
  43. border-left: 60px solid black;
  44. position: absolute;
  45. right: -59px;
  46. top: 0px;
  47. background: red;
  48. }
  49.  
  50.  
  51.  
  52. </style>
  53. <body>
  54.  
  55. <h3>Hello World</h3>
  56.  
  57. </body>
  58. </html>
  59.