Skip to main content

Documentation: Price List component

Custom CSS

The Price List component options include a Custom CSS field, so you can add your own styling rules on top of whatever your template already provides.

pricelist custom css

Some common cases

Remove the extra white space below a paragraph:

.pricelist p {
    margin-bottom: 0px;
}

Place the category image to the left of the category description:

.pricelist .category-image {
    float: left;
    max-width: 200px;
    margin-bottom: 20px;
    margin-right: 20px;
}

What is kept and what is removed

Since version 4.6.0 your CSS is placed on the page exactly as you wrote it, including child selectors such as .pricelist-row > .name-cell, :has(> img) and media queries that use < and >. The only thing that is removed is a closing style tag (</style), because that would end the stylesheet and let anything after it land on the page as HTML.

Version 4.5.2 removed every < and > from this field, which silently changed a child selector into a descendant selector. If a rule with > stopped working after updating to 4.5.2, update to 4.6.0; you do not have to change your CSS.