F
F
frontender2014-10-31 17:48:23
JavaScript
frontender, 2014-10-31 17:48:23

What to do with dynamic height on photo frame?

Hey!
The bottom line is this: when I load a page that has a gallery on a photo frame, while the pictures can be different in height and width, the height is calculated very strangely. She's just huge. I don't specify either height or width. in the attributes I prescribe: data-width="100%". The maximum width can be 940px, I can't set a static width and height.
How to be?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
A
Artem Shelengovskiy, 2014-11-26
@frontender

Probably you need to limit the max dimensions - here is a link to the help - fotorama.io/customize/dimensions

<div class="fotorama"
     data-width="100%"
     data-ratio="800/600"
     data-minwidth="400"
     data-maxwidth="1000"
     data-minheight="300"
     data-maxheight="100%">
  <img src="1.jpg">
  <img src="2.jpg">
</div>

If I understand the question correctly.

Y
Yuri, 2016-12-31
@bychok300

obviously take a large news site and carefully parse, this is done twice.
and it is better to have several sites so that one is not overloaded with requests and can be received relatively quickly.

L
lukoie, 2016-01-01
@lukoie

Why didn't rss work?

C
ckr, 2016-01-01
@ckr

There are aggregators:
https://news.google.ru/
https://news.yandex.ru/
True, they are focused on the news sites themselves (it is believed that the news is more interesting if more news sites are trumpeting it) without taking into account the interest index user (that is, the number of people who read this news is not taken into account).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question