Answer the question
In order to leave comments, you need to log in
How to make rubber thumbnails in bootstrap?
Good afternoon
, there is such an adaptive layout
prntscr.com/53ci80
blocks are constantly jumping, especially the footer of the block
can be made so that it always shrinks proportionally from the main preview size ...
that is, now the avatar is 50 * 50px, set not in pixels somehow but as a percentage and text... so that if you pull the block, it will also decrease
here the page itself up.lifefilm.ru/newfilms.html
Answer the question
In order to leave comments, you need to log in
complex example. and this way and that shovels styles - did not come up with a solution ...
but, probably, you can somehow solve it. even without js. only styles. but you need to look in the morning, on a fresh head.
Set the block footer using the .media class in bootstrap. Also give it a fixed height with overflow: hidden. And put an ellipsis at the end of the text, if it does not fit (in css this is enabled by several styles, you need to google "css ellipsis for span")
Look at a simple example:
allvologda.ru
Wrap the output with the thumbnail class. Then, after the image, add a construction with the caption class. Give it position: relative. Next, you can set the height of the caption, you can write a jquery script to automatically calculate the height. You can absolutely position elements inside divs.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question