[Skip to main content](#vessel-content)

#   css

##

- **[jerome-b](/forum/user/3959-jerome-b "View jerome-b's Profile")**
- [![jerome-b's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/3959-jerome-b "View jerome-b's Profile") Topic Author
- [ Offline](/forum/user/3959-jerome-b)

Less More

- Posts: 28
- Thank you received: 0
-
-

15 years 1 month ago [\#25892](#25892) by [jerome-b](/forum/user/3959-jerome-b "View jerome-b's Profile")  *[css](/forum/3-bug-report/25892-css#25892 "Hi, I think it lacks a generic class for styling hikashop&#95;main&#95;image&#95;div and hikashop&#95;small&#95;image&#95;div because of id's changing with characteristics of the produt...hikashop&#95;main&#95;image&#95;div&#95;4, hikashop&#95;main&#95;image&#95;div&#95;5, etc. I hope that you understand my english... Sorry ! Jérôme")* was created by *[jerome-b](/forum/user/3959-jerome-b "View jerome-b's Profile")*

Hi,
I think it lacks a generic class for styling hikashop_main_image_div and hikashop_small_image_div because of id's changing with characteristics of the produt...hikashop_main_image_div_4, hikashop_main_image_div_5, etc.
I hope that you understand my english... Sorry !
Jérôme

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8yNTg5Mi1jc3M/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86323
- Thank you received: 14283
-
-

15 years 1 month ago [\#25904](#25904) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: css](/forum/3-bug-report/25892-css#25904 "Hi, I think it lacks a generic class for styling hikashop&#95;main&#95;image&#95;div and hikashop&#95;small&#95;image&#95;div because of id's changing with characteristics of the produt...hikashop&#95;main&#95;image&#95;div&#95;4, hikashop&#95;main&#95;image&#95;div&#95;5, etc. I hope that you understand my english... Sorry ! Jérôme")*

I actually don't understand what you think is missing. Could you try to explain better/more ? What are you trying to achieve ?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8yNTg5Mi1jc3M/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[jerome-b](/forum/user/3959-jerome-b "View jerome-b's Profile")**
- [![jerome-b's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/3959-jerome-b "View jerome-b's Profile") Topic Author
- [ Offline](/forum/user/3959-jerome-b)

Less More

- Posts: 28
- Thank you received: 0
-
-

15 years 1 month ago [\#25909](#25909) by [jerome-b](/forum/user/3959-jerome-b "View jerome-b's Profile")  Replied by *[jerome-b](/forum/user/3959-jerome-b "View jerome-b's Profile")* on topic *[Re: css](/forum/3-bug-report/25892-css#25909 "Hi, I think it lacks a generic class for styling hikashop&#95;main&#95;image&#95;div and hikashop&#95;small&#95;image&#95;div because of id's changing with characteristics of the produt...hikashop&#95;main&#95;image&#95;div&#95;4, hikashop&#95;main&#95;image&#95;div&#95;5, etc. I hope that you understand my english... Sorry ! Jérôme")*

Ok, I will try,

On a product page with multiple images, there is two divs like that
&lt;div id="hikashop_main_image_div"&gt;
&lt;div id="hikashop_small_image_div"&gt;
But if you got characteristics, these divs will be called after ajax request:
&lt;div id="hikashop_main_image_div_4"&gt;
&lt;div id="hikashop_small_image_div_4"&gt;
or _div_5,etc...
So, what I suggest is to create a generic class
&lt;div id="hikashop_main_image_div" class="hikashop_main_image_div"&gt;
&lt;div id="hikashop_small_image_div" class="hikashop_small_image_div"&gt;

and when the name of the div will change, we will still retain the style of the class for styling the element...

Is it clearer ?

Jérôme

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8yNTg5Mi1jc3M/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86323
- Thank you received: 14283
-
-

15 years 1 month ago [\#25924](#25924) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: css](/forum/3-bug-report/25892-css#25924 "Hi, I think it lacks a generic class for styling hikashop&#95;main&#95;image&#95;div and hikashop&#95;small&#95;image&#95;div because of id's changing with characteristics of the produt...hikashop&#95;main&#95;image&#95;div&#95;4, hikashop&#95;main&#95;image&#95;div&#95;5, etc. I hope that you understand my english... Sorry ! Jérôme")*

I see what you mean. We'll add that on our end for next release.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8yNTg5Mi1jc3M/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[jerome-b](/forum/user/3959-jerome-b "View jerome-b's Profile")**
- [![jerome-b's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/3959-jerome-b "View jerome-b's Profile") Topic Author
- [ Offline](/forum/user/3959-jerome-b)

Less More

- Posts: 28
- Thank you received: 0
-
-

15 years 1 month ago [\#25928](#25928) by [jerome-b](/forum/user/3959-jerome-b "View jerome-b's Profile")  Replied by *[jerome-b](/forum/user/3959-jerome-b "View jerome-b's Profile")* on topic *[Re: css](/forum/3-bug-report/25892-css#25928 "Hi, I think it lacks a generic class for styling hikashop&#95;main&#95;image&#95;div and hikashop&#95;small&#95;image&#95;div because of id's changing with characteristics of the produt...hikashop&#95;main&#95;image&#95;div&#95;4, hikashop&#95;main&#95;image&#95;div&#95;5, etc. I hope that you understand my english... Sorry ! Jérôme")*

pleased that two french guys can speak English together and understand themselves ! ![;-)](/media/kunena/emoticons/24.png ";-)")

Jérôme

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8yNTg5Mi1jc3M/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86323
- Thank you received: 14283
-
-

15 years 1 month ago [\#25929](#25929) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: css](/forum/3-bug-report/25892-css#25929 "Hi, I think it lacks a generic class for styling hikashop&#95;main&#95;image&#95;div and hikashop&#95;small&#95;image&#95;div because of id's changing with characteristics of the produt...hikashop&#95;main&#95;image&#95;div&#95;4, hikashop&#95;main&#95;image&#95;div&#95;5, etc. I hope that you understand my english... Sorry ! Jérôme")*

![;)](/media/kunena/emoticons/24.png ";)")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8yNTg5Mi1jc3M/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.110 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
