Advertisement
firoze

border for before after

Nov 2nd, 2015
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1.  
  2. <body>
  3. <div class="box">
  4. <h1><img src="" alt="" width="50px" height="40px"/> Typography</h1>
  5. <p>This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.</p>
  6. </div>
  7. <style type="text/css">
  8. .box{
  9. width:400px;
  10. padding:25px;
  11. position:relative;
  12. border:1px solid #ddd;
  13. margin:100px auto;
  14. }
  15. .box::before{
  16. width:50%;
  17. height:25px;
  18. background:#fff;
  19. border-bottom:1px solid #ddd;
  20. position:absolute;
  21. content:"";
  22. right:-1px;
  23. top:-1px;
  24. }
  25. .box::after{
  26. width: 35px;
  27. height: 35px;
  28. background: #fff;
  29. border-bottom: 1px solid #ddd;
  30. position: absolute;
  31. content: "";
  32. left: 50%;
  33. top: -18px;
  34. transform: rotate(45deg);
  35. margin-left: -15px;
  36. }
  37. </style>
  38. </body>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement