Advertisement
Guest User

Untitled

a guest
May 29th, 2016
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.80 KB | None | 0 0
  1. /*>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
  2. *Style sheet for project language | Talha
  3. *>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> */
  4.  
  5. .tags {
  6. list-style: none;
  7. margin: 0;
  8. overflow: hidden;
  9. padding: 0;
  10.  
  11. }
  12.  
  13. .tags li {
  14. float: left;
  15. }
  16.  
  17. .tag {
  18. background: #eee;
  19. border-radius: 3px 0 0 3px;
  20. color: #999;
  21. display: inline-block;
  22. height: 26px;
  23. line-height: 26px;
  24. padding: 0 20px 0 23px;
  25. position: relative;
  26. margin: 0 10px 10px 0;
  27. text-decoration: none;
  28. -webkit-transition: color 0.2s;
  29. }
  30.  
  31. .tag::before {
  32. background: #fff;
  33. border-radius: 10px;
  34. box-shadow: inset 0 1px rgba(0, 0, 0, 0.25);
  35. content: '';
  36. height: 6px;
  37. left: 10px;
  38. position: absolute;
  39. width: 6px;
  40. top: 10px;
  41. }
  42.  
  43. .tag::after {
  44. background: #fff;
  45. border-bottom: 13px solid transparent;
  46. border-left: 10px solid #eee;
  47. border-top: 13px solid transparent;
  48. content: '';
  49. position: absolute;
  50. right: 0;
  51. top: 0;
  52. }
  53.  
  54. .tag:hover {
  55. background-color: crimson;
  56. color: white;
  57. }
  58.  
  59. .tag:hover::after {
  60. border-left-color: crimson;
  61. }
  62. /*>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>*/
  63.  
  64. <b>Uses Language/Framework: </b><br>
  65. <?php
  66. $myString = $project->project_language; // data like $myArray = talha,masi,nishi,mamu
  67. $myArray = explode(',', $myString);
  68. //print_r($myArray[1]);
  69. for($i=0; $i<count($myArray);$i++){
  70. //echo $myArray[$i]."<br/>";
  71. //echo '<div class="tags"><a href="#" class="tag">'.$myArray[$i].'</a></div>';
  72. echo '<a class="tag">'.$myArray[$i].'</a>';
  73. }
  74. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement