I have a fiddle that is functioning perfectly in desktop view. When clicked, the description box of a product item is displayed at the bottom. See screenshot below:
https://i.sstatic.net/yaZDC.png
However, in mobile view, all description boxes are automatically displayed at the bottom without being clicked on top.
Here are snippets of the CSS code I used for the mobile view:
@media only screen and (max-width: 767px)
{
.product-all-contents
{
overflow-x: auto;
}
.product-contents .product{
min-width: 50.795%;
margin: 0 2%;
padding-top: 3.91%;
padding-left: 3.91%;
padding-right: 3.91%;
}
}
Issue:
Currently, all boxes are displayed at the bottom without clicking them.
I suspect that using display: inline-block !important is overriding display:none in the HTML.
@media only screen and (max-width: 767px)
{
div.goal-setting, div.customization-tools, div.custom-invoicing, div.lead-tracking, div.email-marketing, div.royalty-calculator, div.brand-control,
div.franchisehubtv, div.cloudbasedtextipad, div.business-analytics,div.tech-support, div.employee-management, div.order-management, div.white-label {
display: inline-block !important;
}
}
I'm curious about what changes to make in the CSS codes to apply display: inline-block !important only to one product item instead of all items.