Black Friday Sale! Get $20 off GP Premium, $40 off our new Lifetime license, and 45% off license renewals/extensions! Learn more

[Resolved] Align images – top and side by side

Home Forums Support Align images – top and side by side

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #146941
    Genie Bohn

    Image CSS

    What CSS call can I use in the child theme to have all images align next to each other automatically, then wrap to the next line as needed. I can set a margin and padding, but I can’t get them to align across the top in the edit window.

    Edit window alignment

    I have to manually click on each image and do a left justify just to get it as you in the attachment. It seems to display well enough.

    I just felt like I’m missing something in my not-so-knowledgeable CSS.

    This is what I have in the child theme

    img {
         margin: 5px;
         padding: 10px;
    	 float: left;
    	 veritcal-align:top;
         
    }
    
    #146993
    Tom
    Lead Developer
    Lead Developer

    I would personally use the WordPress gallery feature: https://codex.wordpress.org/The_WordPress_Gallery

    Let me know if that helps or not 🙂

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.