How to custom responsive text module


I have a full Hubspot template made by the drag and drop modules already provided.

But I'm trying to create a responsive text module that can work as my Newsletter Title.  


here's the expected behavior:



Email preview:


here's my code 

<!doctype html>
<html xmlns="" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office">
<style type="text/css">
.responsiveTitle {
font-size: {{ module.font_size }}px !important;
text-align: center;
line-height: 175%;
@media (max-width: 350px) {
.responsiveTitle {
font-size: {{ module.font_size_responsive }}px !important;
<h2 class="responsiveTitle">
<span style="font-family: Helvetica, Arial, sans-serif; font-weight: normal;">
{{ module.text_before_bold }}
<em style="font-family: Merriweather, Tahoma, sans-serif; font-weight: 600;">
{{ module.text_bold }}
<span style="font-family: Lato, Tahoma, sans-serif; font-weight: normal;">
{{ module.text_after_bold }}



3 Replies 3

Hello!  @DanielSanchez @Kevin-C @Anton   I saw in another post that you guys were an expert on responsive emails and I would like to ask you for your help,


sorry if this is a cheeky thing and thanks for your time

Top Contributor | Diamond Partner



Email client do not support a range of size formats, but vw unit size would be create. But since the support is bad, I recommand setting up a fallback.


You could also combine the vw unit with min, max or clamp. For more info about it check:


Since outlook is one of the most populair email client I recommand checking unit sizes of css styling at caniemail before using it.


In my opinion the easiest way to create a great responsive looking header is setting up an image with text. This will automatically be resonsive since it will resize to the clients width.

Bureau Vet

Did my post solve your question? Help the community by marking it as a solution
Guide | Diamond Partner

Hi  @IVergara , I see that in the preview the class "responsiveText" is not set in the H2. Could you add that so we can do some testing?
Two things that should help:


  1. Add the hs-inline-css ID to the <style> tag, this should help with cross client compatibility.
  2. Increase your media query to 375px or higher. Currently, your query will skip some mobile devices.
Did my answer solve your issue? Help the community by marking it as the solution.