Created
February 22, 2013 08:30
-
-
Save morrxy/5011754 to your computer and use it in GitHub Desktop.
CSS: floatCenter.less
This file contains 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
/* | |
float center,add custom css to fco1 | |
<div class="fco fco1"> | |
<ul class="fci"> | |
<li class="fi">text1</li> | |
<li class="fi">text2</li> | |
<li class="fi">text3</li> | |
</ul> | |
</div> | |
*/ | |
.fco { | |
position:relative; | |
overflow:hidden; | |
width:100%; | |
> .fci { | |
list-style: none; | |
padding:0; | |
margin: 0; | |
float:left; | |
left:50%; | |
position:relative; | |
> .fi { | |
float:left; | |
left:-50%; | |
position:relative; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment