CSS Cool 3d Ribbon Example

Hi Guys,

So I thought I should share a cool 3d Ribbon with you guys,

Final result looks like this

CSS3 3d Ribbon

Advertisement

Here is code for what I’ve done. Well this is a known technique so I guess you will find it really similar to some others out there.

  1. <title>3d CSS Ribbon</title>
  2. <meta name="Author" content="Jaspreet Chahal">
  3. <meta name="Keywords" content="">
  4. <meta name="Description" content="">
  5. .jcorgwrapper {
  6. position: relative;
  7. }
  8. .jcorgwrapper-int {
  9. background-color: #666;
  10. height: 60px;
  11. width: 975px;
  12. position: relative;
  13. left: -10px;
  14. }
  15. .jcorgribcontent {
  16. padding-top: 15px;
  17. color: white;
  18. }
  19. .jcorgbottomleftcorner, .jcorgbottomrightcorner {
  20. top: 60px;
  21. position: absolute;
  22. z-index: 1;
  23. border-style: solid;
  24. height: 0px;
  25. width: 0px;
  26. }
  27. .jcorgbottomleftcorner {
  28. left: -10px;
  29. border-color: transparent #333 transparent transparent;
  30. border-width: 0 20px 15px 0;
  31. }
  32. .jcorgbottomrightcorner {
  33. left: 945px;
  34. border-color: transparent transparent transparent #333;
  35. border-width: 0 0 15px 20px;
  36. }
  37. </head>
  38.  
  39. <div class="jcorgwrapper">
  40. <div class="jcorgbottomleftcorner"></div>
  41. <div class="jcorgwrapper-int">
  42. <div class="jcorgribcontent">
  43. <div style="text-align:center"><a href="http://jaspreetchahal.ORG" style="font-size:22px;color:white;">JaspreetChahal.org</a></div>
  44. </div>
  45. </div>
  46. <div class="jcorgbottomrightcorner"></div>
  47. </div>
  48. </body>
  49. </html>

 

I hope above stuff helps.

Cheers,

VN:F [1.9.22_1171]
Rating: 0.0/5 (0 votes cast)
VN:F [1.9.22_1171]
Rating: 0 (from 0 votes)

Speak Your Mind

*

CommentLuv badge