Keyword

text float around image in category view

  • Yannis Sintos
  • Yannis Sintos's Avatar Topic Author
  • Offline
  • Junior Member
More
9 years 2 weeks ago #143197 by Yannis Sintos
text float around image in category view was created by Yannis Sintos
Hello,

In category view i would like to float the text of each item around the image of the item.
As you can see in the screenshot, now the image is above the text.
Is that possible?

www.awesomescreenshot.com/image/90316/0c7ace9f5aa898dc2520c05cf386f935

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
9 years 2 weeks ago #143214 by Krikor Boghossian
Replied by Krikor Boghossian on topic text float around image in category view
Hello,
First of all you need to override K2's files so you wont lose your edits when you update. getk2.org/documentation/tutorials/174-templating-with-k2-and-the-concepts-of-sub-templates

Then you can target the image block like this:
.catItemImageBlock { float: left; margin-right: 15px; }

You can also add overflow:hidden or clear: both to catItemView to avoid unwanted behaviour from the floats.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum