itsanooray: (Default)
itsanooray ([personal profile] itsanooray) wrote in [community profile] betterdolphin2023-06-20 02:49 pm
Entry tags:

Simple flushed masonry layout for visuals

Below the cut is code for a simple flushed masonry layout for images. Unfortunately, I haven't found a way to make something similar that will break down to one column when screens sizes get small yet, but this code will shrink images down so it doesn't scroll horizontally on smaller screens. You're able to easily change how many columns you want.






How to use:
1) Copy and paste the code below.
2) Replace URLs in <img src=""> with your own. Copy and paste <img> lines to add more images. Be sure to keep the styles.
3) To change the number of columns, change the number in column-count and column-width to what you want, the numbers should be the same for it to be even.
4) Keep the <lj-raw> tags, else the layout will be a mess.
5) If you want to see more coding information on this, see the codepen here.

Terms of use:
→ To use this for free, all I ask is for a link back to Better Dolphin, somewhere on the post or a note in your profile. You can copy and paste this:
Muse list by: <user name="betterdolphin">

→ You may edit the layout to suit your needs or tastes, however, you are not allowed to redistribute, share or resell.


Post a comment in response:

This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting