Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Center area post/pages (http://forum.bytesforall.com/forumdisplay.php?f=32)
-   -   HOWTO: Insert images and/or text side by side in center column without tables (http://forum.bytesforall.com/showthread.php?t=13701)

dutchess Apr 8, 2011 07:40 AM

HOWTO: Insert images and/or text side by side in center column without tables
 
I was looking for an easy way to put images next to each other, found this online, worked perfectly for me. I take no credit for the code :)

Here is the link, http://vivin.net/2009/11/05/displayi...-in-wordpress/

This is left justified:

<div style="display: inline-block; margin-right: 5px">
[ ... wordpress generated code for first image ... ]
</div>
<div style="display: inline-block">
[ ... wordpress generated code for second image ... ]
</div>


This is centered:

<div style = "text-align:center">
<div style="display: inline-block; margin-right: 5px">
[ ... wordpress generated code for first image ... ]
</div>
<div style="display: inline-block">
[ ... wordpress generated code for second image ... ]
</div>
</div>

lmilesw Apr 8, 2011 08:09 AM

Thanks for that dutchess. That is one I had never played with. I always used floats but this will be very useful at times and a bit easier.


All times are GMT -6. The time now is 02:13 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.