изменить размер изображений с помощью% в css

I am trying to create a liquid web layout using % for as many things as i can. I have hit a bump when resizing images.

both:

<img src="source" style="width: 20%; height: 20%;"/>

and

.wall_picture_block img{
width: 20%; 
height: 20%;
}

don't work properly with the height attribte. They resize the image width to 20% of the container but the height stays relative to the image size.(im trying to make squares)

7 голосов | спросил slexAtrukov 26 thEurope/Moscowp30Europe/Moscow09bEurope/MoscowSun, 26 Sep 2010 14:29:00 +0400 2010, 14:29:00

0 ответов


Похожие вопросы

Популярные теги

security × 330linux × 316macos × 2827 × 268performance × 244command-line × 241sql-server × 235joomla-3.x × 222java × 189c++ × 186windows × 180cisco × 168bash × 158c# × 142gmail × 139arduino-uno × 139javascript × 134ssh × 133seo × 132mysql × 132