Hi, how can i ensure the send button on my contact form has the same border outline as the rest of the form?
thank you
Shopify URL: https://65a186-44.myshopify.com/
Password: meerew
A user seeks to match the border styling of their contact form’s submit button with the rest of the form elements.
Proposed Solutions:
Three community members offered CSS-based fixes, all involving editing the base.css file (or similar stylesheet) in the Shopify theme editor:
border: 1px solid black rule to button[type="submit"]box-shadow: 0px 0px 0px 1px black on .contact__button .button with additional hover state styling#ContactForm .button with background color and border properties using !important flagsKey Details:
Status: Multiple working solutions provided; awaiting user confirmation of which approach worked best.
Hi, how can i ensure the send button on my contact form has the same border outline as the rest of the form?
thank you
Shopify URL: https://65a186-44.myshopify.com/
Password: meerew
Hi @letsgetwasted , go to base.css file and add the following code :
button[type="submit"]{
border : 1px solid black;
}
Result:
.contact__button .button{
box-shadow: 0px 0px 0px 1px black;
transition: border 100ms ease;
}
.contact__button .button:hover::after{
box-shadow: none !important;
}
.contact__button .button:hover{
border: 1px solid black;
}
Hi @letsgetwasted ,
Step 1: Go to Shopify Admin → Online Store ->Theme → Edit code
Step 2: Search file base.css, theme.css, styles.css, custom.css or theme.scss.liquid
Step 3: Insert the below code at the bottom of the file → Save
#ContactForm .button {
background-color: #000 !important;
color: #fff !important;
}
#ContactForm .button:hover {
background-color: #000000a8 !important;
}
Here is result:

Hope this can help you,
If our suggestions are useful, please let us know by giving it a like or marking it as a solution. Thank you