Warrior Forum - The #1 Digital Marketing Forum & Marketplace

Warrior Forum - The #1 Digital Marketing Forum & Marketplace (https://www.warriorforum.com/)
-   Website Design (https://www.warriorforum.com/website-design/)
-   -   coding for alignment in wordpress (https://www.warriorforum.com/website-design/791975-coding-alignment-wordpress.html)

Beatrice 20th May 2013 11:17 AM

coding for alignment in wordpress
 
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

Michael71 20th May 2013 01:25 PM

Re: coding for alignment in wordpress
 
CSS... float left...

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

I would maybe go with a LI

Pakiisp 20th May 2013 11:22 PM

Re: coding for alignment in wordpress
 
Use the alignment option in editor, or you can manuly add <div align="left, right, center"> use one of alignment.

WPcrew 22nd May 2013 03:24 AM

Re: coding for alignment in wordpress
 
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%).


All times are GMT -6. The time now is 08:40 PM.