- Posts: 20
COMMUNITY FORUM
K2 vers. 2.5 (SVN): Image floating left in items
- fred
-
Topic Author
- Offline
- Junior Member
Less
More
13 years 8 months ago #99387
by fred
K2 vers. 2.5 (SVN): Image floating left in items was created 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?
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
-
- Visitor
13 years 8 months ago #99388
by Yiota
Replied by Yiota on topic K2 vers. 2.5 (SVN): Image floating left in items
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
-
Topic Author
- Offline
- Junior Member
Less
More
- Posts: 20
13 years 8 months ago #99389
by fred
Replied by fred on topic K2 vers. 2.5 (SVN): Image floating left in items
Sorry for the delay. Here you go:
www.fintan-gastro-consulting.ch/JungfrauEdit1_7/index.php/en/events/featured-events
This is the joomla 1.5.x site:
www.jungfrau-guide.ch/JungfrauEdit/index.php?option=com_k2&view=itemlist&layout=category&task=category&id=1&Itemid=292&lang=en
If you need more info I will be happy to supply.
www.fintan-gastro-consulting.ch/JungfrauEdit1_7/index.php/en/events/featured-events
This is the joomla 1.5.x site:
www.jungfrau-guide.ch/JungfrauEdit/index.php?option=com_k2&view=itemlist&layout=category&task=category&id=1&Itemid=292&lang=en
If you need more info I will be happy to supply.
Please Log in or Create an account to join the conversation.
- Yiota
-
- Visitor
13 years 8 months ago #99390
by Yiota
Replied by Yiota on topic K2 vers. 2.5 (SVN): Image floating left in items
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
-
Topic Author
- Offline
- Junior Member
Less
More
- Posts: 20
13 years 8 months ago #99391
by fred
Replied by fred on topic K2 vers. 2.5 (SVN): Image floating left in items
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
-
- Visitor
13 years 8 months ago #99392
by Yiota
Replied by Yiota on topic K2 vers. 2.5 (SVN): Image floating left in items
Put the float:left in the catItemImageBlock.
Please Log in or Create an account to join the conversation.
- fred
-
Topic Author
- Offline
- Junior Member
Less
More
- Posts: 20
13 years 8 months ago #99393
by fred
Replied by fred on topic K2 vers. 2.5 (SVN): Image floating left in items
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.
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
-
- Visitor
13 years 8 months ago #99394
by Yiota
Replied by Yiota on topic K2 vers. 2.5 (SVN): Image floating left in items
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;}
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
-
Topic Author
- Offline
- Junior Member
Less
More
- Posts: 20
13 years 8 months ago #99395
by fred
Replied by fred on topic K2 vers. 2.5 (SVN): Image floating left in items
Great, thanks very much :)
Please Log in or Create an account to join the conversation.