F
F
freeman02042015-10-25 14:00:31
css
freeman0204, 2015-10-25 14:00:31

How to properly adapt images to a width less than 480px?

I am adapting the site, there are 3 pictures in a row. When they get small I make them 100% wide and remove the floats. Here's what happens screenshot.ru/c87584898ddacd5e2f813113f0598911 As for me, it's somehow not beautiful 3 large pictures go down, carelessly. Can they be pushed into the slider if the width is less than 480px?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey, 2015-10-25
@gangstarcj

Let the designer who made the design tell you. You can shove it into the slider, or you can leave it like that, it seems normal

E
Evgeny Danilov, 2015-10-25
@danilovevgen

/* стили родительского элемента картинки */
div {
position:relative;
}
/* стили картинки */
img {
position:absolute;
margin: auto;
position: absolute;
width:100%;
heigth:auto;
top:0;
left:0;
right:0;
bottom:0;
/* centering the object*/
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question