Hi all,
I have searched a lot before making this question.
How to display ImageBlock blocks horizontally and not vertically?
I am not calling ImageBlock from an external php file, I need this features straight inside gallery.
I have tried to tweak the CSS in every way (about the div.img-one etc... etc...) but nothing.
Any idea?
Thanks,
Filippo
ps: I am using the siriux theme.
Posts: 19
I think I have solved this, apply this CSS extra code:
div.one-image {float: left;}
div.one-image a { display:inline;}
div.one-image img { display:inline;}
block-imageblock-ImageBlock { display:inline;}
Hope this helps.
Posts: 18
It works, but it is not perfect. The images are shown horizontally, but it looks different than the normal view (eg: 3 rows, 3 columns). To be honest, it looks a little bit messy. And if you have an image block in the sidebar, you will get display errors when you have items below the image block.
Posts: 40
Figured out how to fix the sidebar today when using this technique. Basically, you gotta clear the float in the sidebar.
In my Theme.css, I added
And I changed line 16 of modules/Imageblock/templates/blocks/imageblock.tpl to:
This has been bothering me for awhile so I hope this hack helps others.
Posts: 10
Hi Another_Matt
Really thank you for your answer. This is really helpful, and successful. Great thanx.
However, is there a way to make the imageblock has bottom or middle vertical alignment? I have tried to use the vertical-align:middle in the code, such as this one:
div.one-image a { display:inline; vertical-align:middle }
div.one-image img { display:inline; vertical-align:middle }
block-imageblock-ImageBlock { display:inline; vertical-align:middle }
but unfortunately it's doesn't work. Thanx for your asnwer.