RSS

Category Archives: CSS

How to split ul into multiple columns

ul multi column

ul multi column

ul{
width: 300px;
overflow: hidden;
}

ul li{
float: left;
width: 75px;
}
Advertisements
 
1 Comment

Posted by on June 24, 2013 in CSS

 

Cross browser gradient

background: #f4f4f4; /* Old browsers */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#f4f4f4',GradientType=0 ); /* IE6-9 */
background: -moz-linear-gradient(top,  #ffffff 20%, #f4f4f4 70%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ffffff), color-stop(100%,#f4f4f4)); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top,  #ffffff 0%,#f4f4f4 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top,  #ffffff 0%,#f4f4f4 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top,  #ffffff 0%,#f4f4f4 100%); /* IE10+ */
background: linear-gradient(top,  #ffffff 0%,#f4f4f4 100%); /* W3C */
 
Leave a comment

Posted by on April 12, 2012 in CSS

 

Tags: ,

Cross browser box shadow

filter: progid:DXImageTransform.Microsoft.Shadow(color='#777777', Direction= 135, Strength=8);
zoom: 1!important; /* IE6-9 */
box-shadow: 0 0 5px 5px #888;
-moz-box-shadow: 0 0 5px 5px #666;
-webkit-box-shadow: 0 0 5px 5px #888;
 
Leave a comment

Posted by on April 12, 2012 in CSS

 

Tags: ,