AbanteCart Community
Shopping Cart Operations => Support => Template Support => Topic started by: cookie on January 25, 2014, 07:37:07 PM
-
Hi.
How can I differently style the different types of options if they ALL have the same class ?!?!
I would like to have more groups of radio-box options positioned in floating blocks one near the other and not each option bellow the previous one. Imagine you have 10 groups of options - the way it is now, I'll end up with an endless list all in one column :(
I would like to have at least a modifier class aside the standard <div class="control-group ">
class.
Something like <div class="control-group "MY_CLASS_Maybe_option_type_or_id">
But HOW to get that second bit inthere as I cannot figure ANY parameters here :(
Answer appreciated!
Thank you!
-
Simply put, you'll need to modify the CSS stylesheet. How is your CSS knowledge?
-
Hi
I am pretty good at CSS but I am afraid that it's 1st a php issue as I need to attach that second class MY_CLASS_Maybe_option_type_or_id , and I do not know how :(
-
nobody here has a clue as of how to achieve that !?!?
AbanteCart gurus :o ?!?
what shall I replace the php class with in order to have there something like option type (checkbox,radio,textarea, etc)?!
Or if not, "options ID" would do too even though that would make it a bit more complicated to style
I'd love to have something like this: <div class="control-group <?php HOW-TO-GET-THE-OPTION-TYPE ?>">
where <?php HOW-TO-GET-THE-OPTION-TYPE ?> would be my new class related to the options type (the checkbox, radio etc).
What shall I put instead of <?php HOW-TO-GET-THE-OPTION-TYPE ?> ?!?
THX
-
nobody here has a clue as of how to achieve that !?!?
AbanteCart gurus :o ?!?
what shall I replace the php class with in order to have there something like option type (checkbox,radio,textarea, etc)?!
Or if not, "options ID" would do too even though that would make it a bit more complicated to style
I'd love to have something like this: <div class="control-group <?php HOW-TO-GET-THE-OPTION-TYPE ?>">
where <?php HOW-TO-GET-THE-OPTION-TYPE ?> would be my new class related to the options type (the checkbox, radio etc).
What shall I put instead of <?php HOW-TO-GET-THE-OPTION-TYPE ?> ?!?
THX
You're calling a CSS class called "control-group". My guess is you'll need to modify that CSS stylesheet.
Let me take a look at the stylesheet and get back to you.
-
Beats me Cookie, it's over my head methinks....I can't find a thing to help. Sorry :'(
-
Thanks anyway Gordon!
Actually it's a second class that should be added and before it's a css issue it is first (as usual ...) a php issue!
I need to pull the <?php option['type']?> which should give out smth. like checkbox,radio,select etc.
Just that the code above is not working of course .... :'(
AbanteCart team?