Hi,
I am trying to style something with CSS i have these product discount ribbons with text. I have styled them.. but i want to changed the background color of a ribbon based on a product/category ID.
What can i do here?
is it possible to add on a default cshtml simple product page a class with the product ID and then change the background of the color, and if it is possible how would i add the product.id or category.id on the <html> class.
Or can i use a IF statement == to ID 9 for instance.
@if(Model.ProductId == "9") {
<div style="background-color: orange">
HTML.
</div>
}
Thanks in advance