How can I create and style two side-by-side buttons in Webflow without using CSS, so that the template can be updated in Mailchimp and sent to Mandrill without the CSS being overwritten?

TL;DR
  • Drag two Button elements onto the canvas in Webflow, wrap them in a Div Block, and set it to Flex for side-by-side alignment.
  • Customize button styles such as background, text color, padding, and borders via the Style panel.
  • Export the HTML and embed it in email platforms like Mailchimp to ensure style integrity is maintained.

Creating and styling buttons in Webflow without relying heavily on CSS ensures that the styles remain intact when transferred to platforms like Mailchimp and Mandrill.

1. Add Buttons to Your Webflow Project

  • Open your Webflow project, then navigate to the Designer.
  • Drag and drop two Button elements from the Add panel onto your canvas within the same section or div. This will ensure they are aligned side-by-side by default.

2. Structure Buttons for Side-by-Side Alignment

  • Wrap the buttons in a div block to keep them together. Drag a Div Block element from the Add panel and place both buttons inside it.
  • Set the display of this Div Block to Flex by selecting it, then in the Style panel, click the display setting and choose Flex. This will make the buttons align next to one another horizontally.

3. Style the Buttons Directly in Webflow

  • Select each button one at a time in the Designer.
  • Use the Style panel to customize each button's appearance including:
  • Background color: Set the desired background color under the Background section.
  • Text color: Adjust text color in the Typography section.
  • Padding and margin: Modify padding to control button size and add margin if needed for spacing.
  • Borders and rounded corners: Define border thickness and radius for a rounded appearance.
  • Button Size: Set fixed width or leave as auto to allow text to dictate the width.
  • Preview the buttons to ensure they appear as desired and adjust the styles as necessary.

4. Export Designed Elements for Email Use

  • After finalizing the design, export the entire HTML of your page where the buttons are located.
  • In your email platform like Mailchimp, embed the HTML content that includes inline styles created directly through Webflow. Ensure your email template allows for inserting raw HTML.

5. Test the Email Output

  • Once you’ve set up the HTML in Mailchimp, send a test email to confirm that styles are maintained when the email is delivered through Mandrill.
  • Check different email clients to ensure consistent appearance cross-platform.

Summary

To create and style two side-by-side buttons in Webflow without risking CSS overwriting in email templates, design directly within Webflow's Designer using inline styles. Use flexbox for alignment and customize button styles through the Style panel. Export the HTML and use it directly in Mailchimp to maintain styling integrity.

Rate this answer

Other Webflow Questions