Javascript-форум (https://javascript.ru/forum/)
-   (X)HTML/CSS (https://javascript.ru/forum/xhtml-html-css/)
-   -   Отцентрировать и обрезать изображение по краям (https://javascript.ru/forum/xhtml-html-css/27100-otcentrirovat-i-obrezat-izobrazhenie-po-krayam.html)

madhed 12.03.2014 13:29

Pavel M., спасибо за идею, по аналогии сделала горизонтальное)
.media{
                        display: block;
			float: none;
			width: 100%;
			height: 400px;
			overflow: hidden;
			position: relative;
			margin: 0;
			a{
				width: 500%;
				height: 100%;
				position: absolute;
				left: -200%;
				img{
					 display: block;
					 position: absolute;
					 width: auto;
					 height: 400px;
				     left: 0; top: 0; bottom: 0; right: 0;
	    			 margin: auto;
				}
			}
		}


Часовой пояс GMT +3, время: 16:36.