Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> Zmiana wysokości jednego boku prostokąta.
KotWButach
post
Post #1





Grupa: Zarejestrowani
Postów: 361
Pomógł: 10
Dołączył: 8.02.2012

Ostrzeżenie: (0%)
-----


Witam

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

(IMG:http://www.iv.pl/images/72322825088484605783.png)

  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.  
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 23.12.2025 - 13:49