- Posts: 640
- Thank you received: 16
Improve checkbox appearance
- PeterChain
-
Topic Author
- Offline
Less
More
11 years 7 months ago #199155
by PeterChain
Improve checkbox appearance was created by PeterChain
-- HikaShop version -- : 2.4.0
-- Joomla version -- : 3.4.1
Configuring a new filter module I have some trouble with the most filters appearance which I partially solved checking the forum but I can't find a solution for this:
The checkbox filter is ruled under this CSS I found in the forum
The problem is that after 1/24 the next elements should jump to next line otherwise the filter box gets widened outside the template limits.
How can I make the checkbox both inline and using more than one line if needed.
I tried inline-block , removed !important, and something else with no success.
Thank you.
-- Joomla version -- : 3.4.1
Configuring a new filter module I have some trouble with the most filters appearance which I partially solved checking the forum but I can't find a solution for this:
The checkbox filter is ruled under this CSS I found in the forum
Code:
.hikashop_filter_checkbox label{
display: inline !important;
padding-right: 8px;
}
The problem is that after 1/24 the next elements should jump to next line otherwise the filter box gets widened outside the template limits.
How can I make the checkbox both inline and using more than one line if needed.
I tried inline-block , removed !important, and something else with no success.
Thank you.
Please Log in or Create an account to join the conversation.
11 years 7 months ago #199200
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Replied by Jerome on topic Improve checkbox appearance
Hi,
You're problem is not coming from the checkboxes which are just some content.
The problem is coming from the container and his growing size depending his content.
Regards,
You're problem is not coming from the checkboxes which are just some content.
The problem is coming from the container and his growing size depending his content.
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Please Log in or Create an account to join the conversation.
- PeterChain
-
Topic Author
- Offline
Less
More
- Posts: 640
- Thank you received: 16
11 years 7 months ago #199244
by PeterChain
Replied by PeterChain on topic Improve checkbox appearance
I understand...
but,
to stop the content growing in horizontal size (due the checkbox filter), how can I make it multiple row so after a certain horizontal px size it flows to the next line?
I guess it should be possible that the row of checkboxes is limited by the container width. True?
but,
to stop the content growing in horizontal size (due the checkbox filter), how can I make it multiple row so after a certain horizontal px size it flows to the next line?
I guess it should be possible that the row of checkboxes is limited by the container width. True?
Please Log in or Create an account to join the conversation.
11 years 7 months ago #199246
by nicolas
Replied by nicolas on topic Improve checkbox appearance
Hi,
You want to add a float:left; on both the checkboxes and the labels and force the width of the area in order to reduce it. That way, they will be able to go on several lines.
You want to add a float:left; on both the checkboxes and the labels and force the width of the area in order to reduce it. That way, they will be able to go on several lines.
The following user(s) said Thank You: PeterChain
Please Log in or Create an account to join the conversation.
- PeterChain
-
Topic Author
- Offline
Less
More
- Posts: 640
- Thank you received: 16
11 years 7 months ago #199271
by PeterChain
Replied by PeterChain on topic Improve checkbox appearance
Ok, I'll try later in the day and ocnfirm. Thank you!
Please Log in or Create an account to join the conversation.
- PeterChain
-
Topic Author
- Offline
Less
More
- Posts: 640
- Thank you received: 16
11 years 7 months ago #199423
by PeterChain
Replied by PeterChain on topic Improve checkbox appearance
Thank you. Your advise helped me to find the way to beautiful filter looking.
Please Log in or Create an account to join the conversation.
Time to create page: 0.103 seconds