I will say right away what I can do) and on native CSS \ HTML and on Bootstrap. But I always come across the same problem! I do not understand how to typeset a block in which the pictures go (for example, examples of work or something like that). Who can once and for all explain how this is done. I need to know a few options, let's say there is a block wrapper and the pictures go in order in it, how to make them the same size and when changing the browser window they also remained, as far as I understand, they do it through “%” something comes out. The second option is the pictures between which there are gaps (that is, but they do not stick to each other), when I indent, everything drops out and the layout breaks, so that any number of pictures would remain in its block when the window is resized. I think you understand what I meant here. I will cite as an example a sketch of the code, if not difficult to show that yes how
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <title>Document</title> <style> .container { width: 1000px; height: auto; border: 1px solid #bbb; margin: 0 auto; } .item { width: 25%; height: 160px; border: 1px solid red; display: inline-block; background-color: rgba(0,0,0,.4); }</style> </head> <body> <div class="container"> <div class="item"></div> <div class="item"></div> <div class="item"></div> <div class="item"></div> <div class="item"></div> </div> </body> </html>
display:flex- Grundy