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> |
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 05:57 AM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.