Last active
May 29, 2016 23:00
-
-
Save talha08/b00ceee34337c269a2f69748a05f67ba to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> | |
Style sheet for project language | Talha | |
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> | |
.tags { | |
list - style: none; | |
margin: 0; | |
overflow: hidden; | |
padding: 0; | |
} | |
.tags li { | |
float: left; | |
} | |
.tag { | |
background: #eee; | |
border - radius: 3 px 0 0 3 px; | |
color: #999; | |
display: inline-block; | |
height: 26px; | |
line-height: 26px; | |
padding: 0 20px 0 23px; | |
position: relative; | |
margin: 0 10px 10px 0; | |
text-decoration: none; | |
-webkit-transition: color 0.2s; | |
} | |
.tag::before { | |
background: # fff; | |
border - radius: 10 px; | |
box - shadow: inset 0 1 px rgba(0, 0, 0, 0.25); | |
content: ''; | |
height: 6 px; | |
left: 10 px; | |
position: absolute; | |
width: 6 px; | |
top: 10 px; | |
} | |
.tag::after { | |
background: #fff; | |
border - bottom: 13 px solid transparent; | |
border - left: 10 px solid# eee; | |
border - top: 13 px solid transparent; | |
content: ''; | |
position: absolute; | |
right: 0; | |
top: 0; | |
} | |
.tag: hover { | |
background - color: crimson; | |
color: white; | |
} | |
.tag: hover::after { | |
border - left - color: crimson; | |
} | |
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> | |
PHP code | |
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> | |
< b > Uses Language / Framework: < /b><br> <? php | |
$myString = $project - > project_language; // data like $myArray = talha,masi,nishi,mamu | |
$myArray = explode(',', $myString); | |
//print_r($myArray[1]); | |
for ($i = 0; $i < count($myArray); $i++) { | |
//echo $myArray[$i]."<br/>"; | |
//echo '<div class="tags"><a href="#" class="tag">'.$myArray[$i].'</a></div>'; | |
echo '<a class="tag">'.$myArray[$i]. | |
'</a>'; | |
} ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment