Hope you can help me with this. I’m trying to add custom CSS to a specific product. I have different product templates so I’m able to do so by doing the following:
This targets a specific section in a specific template, and it is exactly what I need. However, I found that whenever I duplicate the theme to work on a test environment, these numbers are shuffled and the CSS no longer works.
How can I still target specific sections in specific templates without having these issues?
The issue is not the video height, but the height of the content on top of it. For instance, one product will have a paragraph of text on top of it but another one will have 3 paragraphs, so they need to be higher or lower
Any reason as to why you’re using transform: translate? You could simply have the video container come directly after the text in your liquid file, then use a margin: bottom on the text to clean everything up.
I’m assuming some of the videos are overlapping over the text, and you’re trying to prevent that, correct?