Articles on: Building Calculators

Common CSS Updates

Using these snippets you can update the look and feel of the calculator using our advanced styling section. Learn more about CSS styling Here

Adding a header above all calculators:
#calculator::before {

    content: "Custom Price Heading";

    font-weight: bold;
    font-size: 24px;
    text-align: center;
    display: block;
    clear: both;
    background: white;
    line-height: 40px;
    color: green;

}



Controlling the swatch sizes:

.swatch-picker .swatch-label {

        height: 80px !important;
        width: 80px !important;
}
.swatch-picker .swatch-label input {
        height: 80px !important;
        width: 80px !important;
}



Controlling the background and text color in the dropdown element:

#calculator .element select {
    background-color: green !important;
    color: #fff;
}



Removing the arrows othe n image selector:

/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}


/* Firefox */
input[type=number] {
  -moz-appearance: textfield;
}


We do this for merchants with a small fee. Chat us now!

Updated on: 10/02/2023

Was this article helpful?

Share your feedback

Cancel

Thank you!