Created
April 17, 2016 17:25
-
-
Save rdbox/06e5e07d5c41449938059156adf898ef to your computer and use it in GitHub Desktop.
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
html,body, ul, li, div { | |
margin: 0; | |
padding: 0; | |
} | |
ul { | |
font-family: Verdana, Geneva, sans-serif; | |
text-align: justify; | |
margin: 10px; | |
border: 1px dashed; | |
background: #f8f7ef; | |
/*Обноление родителя*/ | |
line-height: 0; | |
font-size: 1px; | |
/*FIX IE6-7*/ | |
text-justify: newspaper ; | |
/*Включаем последнюю строку*/ | |
text-align-last: justify; | |
} | |
ul:after { | |
width: 100%; | |
height: 0; | |
visibility: hidden; | |
overflow: hidden; | |
content: ''; | |
display: inline-block; | |
} | |
ul li { | |
list-style: none; | |
background: #E76D13; | |
width: 98px; | |
height: 98px; | |
border: 1px solid; | |
display: inline-block; | |
text-align: center; | |
/*Восстанавливаем значение у потомков*/ | |
line-height: normal; | |
font-size: 14px; | |
/*FIX Opera*/ | |
vertical-align: top; | |
/*Эмуляция IE 6-7 | |
display: inline; | |
zoom: 1; | |
*/ | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment