laenavesse

IMAGE GALLERY V. ADAPTIVE

Jan 24th, 2023 (edited)
367
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.54 KB | None | 0 0
  1. IMAGE GALLERY V. ADAPTIVE
  2. Directions: https://efryndiel.dreamwidth.org/9104.html
  3. Credit to Laena @ efryndiel.dreamwidth.org
  4.  
  5. <center><span style="font-family: palatino, serif; font-size: 22pt; color: #804024;">&mdash;&mdash; HEADER TEXT &mdash;&mdash;</span></center>
  6.  
  7. <raw-code>
  8. <div style="margin: 25px auto; max-width: 75%;">
  9.  
  10. <!-- images -->
  11. <ul style="display: flex; flex-flow: row wrap; margin: 0; padding: 0;">
  12.  
  13. <!-- code snippet to c/p -->
  14. <li style="height: auto; flex-grow: 1; list-style-type: none; margin: 1px;"><img src="URL" title="blah blah blah" style="max-height: 200px; min-width: 100%; object-fit: cover; vertical-align: bottom;">
  15.  
  16. <li style="height: auto; flex-grow: 1; list-style-type: none; margin: 1px;"><img src="URL" title="blah blah blah" style="max-height: 200px; min-width: 100%; object-fit: cover; vertical-align: bottom;">
  17.  
  18. <li style="height: auto; flex-grow: 1; list-style-type: none; margin: 1px;"><img src="URL" title="blah blah blah" style="max-height: 200px; min-width: 100%; object-fit: cover; vertical-align: bottom;">
  19.  
  20. <!-- final item so the last row doesn't stretch weird (match the height to the rest) -->
  21. <li style="height: 200px; flex-grow: 10; list-style-type: none;"></ul>
  22. </div>
  23. </raw-code>
  24.  
  25. <!-- credit -->
  26. <center><font style="font-family: trebuchet ms, sans-serif; font-size: 9pt;"><a href="https://efryndiel.dreamwidth.org/9104.html" style="color: #804024; text-decoration: none;">code</a> by <a href="https://efryndiel.dreamwidth.org" style="color: #804024; text-decoration: none;">efrynidel</a></center>
Advertisement
Add Comment
Please, Sign In to add comment