Webflow sync, pageviews & more.
NEW

How can I change the font size of H4 elements in the Rich Text element on Webflow only for mobile screen sizes?

TL;DR
  • Select the Rich Text element and give it a unique class name.
  • Click into it, select an H4, and use the nested selector shown in the Style panel.
  • Switch to the mobile breakpoint, then adjust the font size in the Typography section for that nested selector.

To change the font size of H4 elements within a Rich Text element on mobile only, you’ll need to use Webflow’s Style Panel with rich text nested selectors and responsive breakpoints.

1. Select the Rich Text Element

  • Click the Rich Text element on your canvas.
  • Make sure it has a unique class name. For example, "Blog Content".

2. Access the Nested H4 Tag

  • With the Rich Text element selected, click into it and select an H4 heading within it.
  • In the Selector field at the top of the Style panel, Webflow will show something like “H4 inside Blog Content”.
  • This creates a nested selector, targeting only H4 elements inside that specific Rich Text block.

3. Switch to the Mobile Breakpoint

  • In the top of Webflow’s Designer, click the mobile landscape icon (for tablet and smaller) or mobile portrait icon (for mobile only).
  • This enables styling specifically for that screen size and smaller.

4. Adjust the Font Size

  • With the nested H4 inside Rich Text selector active, and the mobile breakpoint selected:
  • Scroll down in the Style panel to Typography.
  • Change the font size to your desired mobile-friendly size (e.g., 16px).

5. Repeat if Needed for Other Mobile Breakpoints

  • You can fine-tune further by switching to tablet or landscape mobile and adjusting font size separately if needed.

Summary

To change the H4 font size in a Rich Text element on mobile: create a nested selector, switch to the mobile breakpoint, and then adjust the font size under Typography. This ensures only H4 elements within that Rich Text class are affected, and only on mobile.

Rate this answer

Other Webflow Questions