Created
November 20, 2013 11:46
Адаптивные изображения в сетке 3x3 на списках
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
div | |
ul | |
li | |
img src="#" width="100%" | |
span SomeText | |
li | |
img src="#" width="100%" | |
span SomeText | |
li | |
img src="#" width="100%" | |
span SomeBigBigBigText | |
li | |
img src="#" width="100%" | |
span SomeText | |
li | |
img src="#" width="100%" | |
span SomeText | |
li | |
img src="#" width="100%" | |
span SomeText | |
li | |
img src="#" width="100%" | |
span SomeText | |
li | |
img src="#" width="100%" | |
span SomeText | |
li | |
img src="#" width="100%" | |
span SomeText |
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
div { /* Главный контейнер. Может иметь любые размеры */ | |
width:500px; | |
} | |
ul { | |
text-align:center; | |
} | |
li { | |
list-style:none; | |
display:inline-block; | |
vertical-align:top; | |
width:20%; /* размер контейнера под изображения*/ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment