- Posts: 846
- Thank you received: 92
css inline manage by php front End gui parameter
13 years 2 months ago - 13 years 2 months ago #112477
by lionel75
css inline manage by php front End gui parameter was created by lionel75
i think it is a bad way to use css properties/values inline since we can't override the value
In listing_list.php we have
php code => <li class="hikashop_product_list_item" <?php echo $width; ?>>
html browser => <li class="hikashop_product_list_item" style="float:left;width:98%;">
how and where is define the " float:left;width:98%; " in the bacend gui ? . IT must be locate in the menu item type !! but find nothing
Be able to create new id/class name is usefull but let php developper define css (values) in the backend seem to be a bad thing since all have to be implemented using the CSS files .
Regard's
In listing_list.php we have
php code => <li class="hikashop_product_list_item" <?php echo $width; ?>>
html browser => <li class="hikashop_product_list_item" style="float:left;width:98%;">
how and where is define the " float:left;width:98%; " in the bacend gui ? . IT must be locate in the menu item type !! but find nothing
Be able to create new id/class name is usefull but let php developper define css (values) in the backend seem to be a bad thing since all have to be implemented using the CSS files .
Regard's
Last edit: 13 years 2 months ago by lionel75.
Please Log in or Create an account to join the conversation.
13 years 2 months ago #112479
by nicolas
Replied by nicolas on topic css inline manage by php front End gui parameter
I agree with you. But this is different.
HikaShop allows you to specify the number of columns of listings with options in your menus and modules. Thus, the width is calculated dynamically based on how you configure the menu/module.
Normally, you should never have to touch that CSS.
Nevertheless, it doesn't mean that you can't override it. You can override with the !important CSS functionality like that:
.hikashop_product_list_item{ width: 50% !important; }
But in that case, I would recommend to rather change the listing to a two column listing in the options of your menu/module instead of trying to override it.
HikaShop allows you to specify the number of columns of listings with options in your menus and modules. Thus, the width is calculated dynamically based on how you configure the menu/module.
Normally, you should never have to touch that CSS.
Nevertheless, it doesn't mean that you can't override it. You can override with the !important CSS functionality like that:
.hikashop_product_list_item{ width: 50% !important; }
But in that case, I would recommend to rather change the listing to a two column listing in the options of your menu/module instead of trying to override it.
Please Log in or Create an account to join the conversation.
Time to create page: 0.139 seconds