- Posts: 5
COMMUNITY FORUM
Where can I change the Width of the itemContainer
- flemming lauth
- Topic Author
- Offline
- New Member
Less
More
12 years 9 months ago #60927
by flemming lauth
Where can I change the Width of the itemContainer was created by flemming lauth
Hi,
I cant findout where I can change this Width.
I have look in all templates, but can¨t find this line.
<div class="itemContainer" style="width:33.3%;">
I cant findout where I can change this Width.
I have look in all templates, but can¨t find this line.
<div class="itemContainer" style="width:33.3%;">
Please Log in or Create an account to join the conversation.
- Andrey Miasoedov
- Offline
- Senior Member
12 years 9 months ago #60928
by Andrey Miasoedov
Replied by Andrey Miasoedov on topic Re: Where can I change the Width of the itemContainer
Hello, Flemming.
You can find it in components\com_k2\templates\default\category.php on line 151.
You can find it in components\com_k2\templates\default\category.php on line 151.
Please Log in or Create an account to join the conversation.
- flemming lauth
- Topic Author
- Offline
- New Member
Less
More
- Posts: 5
12 years 9 months ago #60929
by flemming lauth
Replied by flemming lauth on topic Re: Where can I change the Width of the itemContainer
Hmm, so how do I change the 33,3% to ex:30% ?
<div class="itemContainer<?php echo $lastContainer; ?>"<?php echo (count($this->leading)==1) ? '' : ' style="width:'.number_format(100/$this->params->get('num_leading_columns'), 1).'%;"'; ?>>
<div class="itemContainer<?php echo $lastContainer; ?>"<?php echo (count($this->leading)==1) ? '' : ' style="width:'.number_format(100/$this->params->get('num_leading_columns'), 1).'%;"'; ?>>
Please Log in or Create an account to join the conversation.
- Andrey Miasoedov
- Offline
- Senior Member
12 years 9 months ago #60930
by Andrey Miasoedov
Replied by Andrey Miasoedov on topic Re: Where can I change the Width of the itemContainer
change "...number_format(100/$this..."
with "...number_format(90/$this..."
with "...number_format(90/$this..."
Please Log in or Create an account to join the conversation.
- flemming lauth
- Topic Author
- Offline
- New Member
Less
More
- Posts: 5
12 years 9 months ago #60931
by flemming lauth
Replied by flemming lauth on topic Re: Where can I change the Width of the itemContainer
Thank you that works :)
Please Log in or Create an account to join the conversation.
- Web75
- Offline
- New Member
Less
More
- Posts: 14
12 years 1 month ago #60932
by Web75
Replied by Web75 on topic Re: Where can I change the Width of the itemContainer
Hello, I have the same problem, but I would change the percentage in pixels px. It's possible?
Thank You
Thank You
Please Log in or Create an account to join the conversation.
- Web75
- Offline
- New Member
Less
More
- Posts: 14
12 years 1 month ago #60933
by Web75
Replied by Web75 on topic Re: Where can I change the Width of the itemContainer
<div class="itemContainer" style="width:200px;">
Please Log in or Create an account to join the conversation.