Designer
CMS
Ecommerce
Interactions
Memberships
Editor
Logic
SEO
Hosting
Security
Overview
Libraries
Apps
Hire a Certified Partner
Templates
Made in Webflow
Learn
Community
Ebooks
Forum
Blog
Support
LoginContact Sales
Get started — it's free
Made in Webflow

Removing Runts/Widows

Brian Love
B
Brian Love
Clone in Webflow24
site profile thumbnail
Open in Webflow
Open live site
I have paragraphs with the class of "runt" and I used a Javascript snippet to remove all runts/widows on those paragraphs. Code adds a non-breaking space before the last word in the string
Open in Webflow
Open live site
runts
typography
widows
type

More sites by Brian Love

See profile
Calculating The Estimated Reading Time For Your Webflow CMS Using Javascript
16
267
Thumbnail Gallery Interaction For Your E-Commerce Products
14
476
Use A Dropdown Component To Control Tabs
13
372

Similar sites

author avatar
Transition Utility Pt. 1
73
164
CJ Hersh
author avatar
Custom Product Quantity Buttons
50
Noah Raskin
author avatar
Dot cloneable portfolio
20
50
KajalValand
author avatar
designpodcast
12
75
Ankita Gupta
author avatar
Sticky is Stuck
12
13
Tony Seets
author avatar
Enhanced branding with :focus-visible and ::selection
3
3
Web Bae
Explore
  • Dashboard
  • Marketplace
  • Hire designers
Learn & get help
  • Support
  • University
  • Courses
  • Blog
  • Ebooks
  • Forum
  • Community
  • Developers
  • Wishlist
  • Status
Company
  • About
  • Careers
  • Sitemap
  • Become an Affiliate
Terms & policy
  • Terms of Service
  • Privacy policy
  • Cookie policy
  • Cookie preferences
Social
Social
Explore
  • Dashboard
  • Marketplace
  • Hire designers
Learn & get help
  • Support
  • University
  • Courses
  • Blog
  • Ebooks
  • Forum
  • Community
  • Developers
  • Wishlist
  • Status
Company
  • About
  • Careers
  • Sitemap
  • Become an Affiliate
Terms & policy
  • Terms of Service
  • Privacy policy
  • Cookie policy
  • Cookie preferences
Social
Social