coding for alignment in wordpress

3 replies
  • WEB DESIGN
  • |
Hello!

Is there a simple piece of coding that allows pictures to be aligned side by side in a worpress template?

I'm using Mainstream theme.

Thanks
#alignment #coding #wordpress
  • Profile picture of the author Michael71
    CSS... float left...

    depends on the width/height of the elements, the parent element,...

    I would maybe go with a LI
    Signature

    HTML/CSS/jQuery/ZURB Foundation/Twitter Bootstrap/Wordpress/Frontend Performance Optimizing
    ---
    Need HTML/CSS help? Skype: microcosmic - Test Your Responsive Design - InternetCookies.eu

    {{ DiscussionBoard.errors[8093467].message }}
  • Profile picture of the author Pakiisp
    Use the alignment option in editor, or you can manuly add <div align="left, right, center"> use one of alignment.
    {{ DiscussionBoard.errors[8094777].message }}
  • Profile picture of the author WPcrew
    Images can also be set to alignnone (that's by default), but both images can't be wider then content area. If theme has defined style for content images, like padding, border, margin and similar, that will increase space needed for image.

    To be super safe, both images need to be smaller then 50% of content area (try with 40%).
    {{ DiscussionBoard.errors[8098609].message }}

Trending Topics