Keyword

K2 vers. 2.5 (SVN): Image floating left in items

  • fred
  • fred's Avatar Topic Author
  • Offline
  • Junior Member
More
13 years 1 month ago #99387 by fred
On my old joomla 1.5.23 site I had to edit this line in /components/com_k2/css/style.css so my images floated left of the text:

 

div.itemImageBlock {padding:8px;margin:0 0 16px 0;float:left;}    span.itemImage {display:block;text-align:center;margin:0 0 8px 0;}    span.itemImage img {border:0px solid #ccc;padding:8px;}    span.itemImageCaption {color:#666;float:left;display:block;font-size:11px;}    span.itemImageCredits {color:#999;float:right;display:block;font-style:italic;font-size:11px;}

 

 

 


I edited it in the vers. 2.5 style.ccs to look like this:

 

div.itemImageBlock {padding:8px;margin:0 0 16px 0;float:left;}    span.itemImage {display:block;text-align:center;margin:0 0 8px 0;}    span.itemImage img {border:1px solid #ccc;padding:8px;}    span.itemImageCaption {color:#666;float:left;display:block;font-size:11px;}    span.itemImageCredits {color:#999;float:right;display:block;font-style:italic;font-size:11px;}

This line doesn't seem to work with vers. 2.5 (SVN)

 


This doesn't seem to work.

 

All my item images are centered. I want them left of my text.

 

any ideas please?

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

  • Yiota
  • Yiota's Avatar
  • Visitor
13 years 1 month ago #99388 by Yiota
Could you provide a link to that page? You might have a CSS conflict between K2 and your template, or a tag that hasn't closed properly, etc.

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

  • fred
  • fred's Avatar Topic Author
  • Offline
  • Junior Member
More
13 years 1 month ago #99389 by fred

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

  • Yiota
  • Yiota's Avatar
  • Visitor
13 years 1 month ago #99390 by Yiota
The css you have changed is for the item page and not the category list page. Locate catItemImageBlock in the k2.css and make the appropriate changes there.

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

  • fred
  • fred's Avatar Topic Author
  • Offline
  • Junior Member
More
13 years 1 month ago #99391 by fred
Okay got that, but now my text is still below the image, not next to it. what else do I need to edit?

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

  • Yiota
  • Yiota's Avatar
  • Visitor
13 years 1 month ago #99392 by Yiota
Put the float:left in the catItemImageBlock.

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

  • fred
  • fred's Avatar Topic Author
  • Offline
  • Junior Member
More
13 years 1 month ago #99393 by fred
This is what I have:

 

div.catItemImageBlock {padding:8px;margin:0 0 16px 0;}    span.catItemImage {display:block;float:left;text-align:center;margin:0 0 8px 0;}    span.catItemImage img {border:1px solid #ccc;padding:8px;}

 

images are now left but the text is still below the image, not next to the image.

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

  • Yiota
  • Yiota's Avatar
  • Visitor
13 years 1 month ago #99394 by Yiota
Just make this:

div.catItemImageBlock {padding:8px;margin:0 0 16px 0;float:left;}    span.catItemImage {display:block;text-align:center;margin:0 0 8px 0;}    span.catItemImage img {border:1px solid #ccc;padding:8px;}

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

  • fred
  • fred's Avatar Topic Author
  • Offline
  • Junior Member
More
13 years 1 month ago #99395 by fred
Great, thanks very much :)

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


Powered by Kunena Forum