Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

text-wrap-mode controls whether a text block may wrap at soft line-break opportunities. Set it to wrap (the default) to allow wrapping or nowrap to keep the content on one line, even if that causes overflow. It does not choose how lines are composed; that job belongs to text-wrap-style. The text-wrap shorthand can set both decisions together.

What text-wrap-mode controls

CSS Text Module Level 4 separates wrapping into two decisions: whether soft wrapping is permitted and, if it is, which layout approach the browser should use. text-wrap-mode makes the first decision.

Value Effect Typical use
wrap Allows the browser to move text to another line at suitable soft-break opportunities. Normal paragraphs and responsive text.
nowrap Disables soft wrapping. Content wider than its container can overflow instead of moving to a new line. Single-line labels, compact controls, or intentionally unbroken UI text.

wrap is the default mode. Neither value inserts hard line breaks; an explicit <br> remains a forced break.

Basic syntax and examples

Allow ordinary wrapping

.article-copy {
  text-wrap-mode: wrap;
}

This is equivalent to leaving the mode at its default for ordinary text.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
#1 Best Overall
Elebase USB to USB C Adapter for iPhone 18 Pro Max,USBC Car Charger Adapter
  • Read Before You Buy — No Video Output: These adapters support charging and USB 2.0 data transfer, but cannot transmit video signals. Except for standard USB webcams (which use USB data only), they are not compatible with HDMI/DisplayPort cables, video-capable USB-C hubs, or docking stations with video output.
  • Convert USB-A Ports to USB-C: Designed to connect USB-C earphones, cables, flash drives, card readers, and other USB-C accessories to standard USB-A ports. Plug-and-play with no drivers or software required.
  • Aluminum Alloy Housing: Built with a sturdy aluminum alloy shell that aids in heat dissipation and protects against daily wear and scratches. Designed to maintain a stable and secure connection.
  • Compact & Travel-Friendly: The ultra-compact design allows the adapter to stay plugged into your device without blocking adjacent ports or adding bulk, reducing wear and tear on your original USB ports.
  • 12-Month Warranty: Backed by a 12-month manufacturer warranty for peace of mind. Designed to meet strict quality control standards for reliable everyday performance.

Keep a label on one line

.toolbar-label {
  text-wrap-mode: nowrap;
}

Use this only when overflow is acceptable or separately handled. A long label can extend beyond its container, overlap adjacent content, or create horizontal scrolling depending on the surrounding layout and overflow rules.

Use the shorthand

.headline {
  text-wrap: balance;
}

.single-line {
  text-wrap: nowrap;
}

The shorthand accepts a mode, a style, or both. A style keyword such as balance keeps wrapping enabled while requesting a different line-composition strategy; nowrap sets the mode that prohibits soft wrapping.

Rank #2
Anker USB-C Hub, 5-in-1 USB Hub for Laptops, 4K HDMI Multiport Adapter
  • 5-in-1 USB-C Hub: Experience comprehensive connectivity featuring a Power Delivery input, two USB-A 2.0 ports, a USB-A 3.0 port, and an HDMI port. (Note: The USB-C power delivery input port is only for connecting an external wall charger to power your laptop and cannot power peripheral devices.)
  • 90W Pass-Through Charging: Achieve optimal charging with 90W pass-through power to your laptop, supported by a total input of 100W, with the hub reserving 10W for operational efficiency. (Note: Wall charger not included.)
  • Quick Data Transfers: Accelerate your productivity with rapid data transfers using a high-speed 5Gbps USB 3.0 port and two 480Mbps USB 2.0 ports.
  • 4K HDMI Display: Enhance your visual experience with a hub capable of delivering 4K resolution at 30Hz in both mirror and extend modes. Please note that this hub is compatible with MacBook (macOS 12 and newer), Windows 10 and 11, ChromeOS, and laptops equipped with DP Alt Mode and Power Delivery. Note: This device is not compatible with Linux.
  • What You Get: Anker USB-C Hub (5-in-1, 4K HDMI), welcome guide, 18-month warranty, and our friendly customer service.

text-wrap-mode versus text-wrap-style

text-wrap-mode answers “may this text wrap?” text-wrap-style answers “how should the browser arrange lines when wrapping is allowed?” The W3C describes the style property as a trade-off among speed, quality, visual style, and stability (CSS Text Module Level 4 Working Draft, 14 August 2026).

Style value What it requests Best fit and limitation
auto The performance-oriented default approach. General text when no special composition is needed.
balance More even line lengths. Short headings, captions, and blockquotes. Implementations limit how many lines are considered, so it is not a promise to balance an entire long paragraph.
pretty A slower layout approach that favors improved line composition. Longer body copy when the visual result matters and the extra layout work is acceptable.
stable Keeps preceding lines stable while text is edited. Editable content, where avoiding broad reflow during typing is useful.
avoid-short-last-line Attempts to avoid an undesirably short final line. Check compatibility before relying on it; support is not necessarily the same as support for the property itself.

These style values affect composition only when wrapping is permitted. Applying text-wrap-style cannot make nowrap text wrap.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #3
Sale
Anker USB C Hub, 7in1 Multi-Port USB Adapter, 4K@60Hz USBC to HDMI Splitter
  • Sleek 7-in-1 USB-C Hub: Features an HDMI port, two USB-A 3.0 ports, and a USB-C data port, each providing 5Gbps transfer speeds. It also includes a USB-C PD input port for charging up to 100W and dual SD and TF card slots, all in a compact design.
  • Flawless 4K@60Hz Video with HDMI: Delivers exceptional clarity and smoothness with its 4K@60Hz HDMI port, making it ideal for high-definition presentations and entertainment. (Note: Only the HDMI port supports video projection; the USB-C port is for data transfer only.)
  • Double Up on Efficiency: The two USB-A 3.0 ports and a USB-C port support a fast 5Gbps data rate, significantly boosting your transfer speeds and improving productivity.
  • Fast and Reliable 85W Charging: Offers high-capacity, speedy charging for laptops up to 85W, so you spend less time tethered to an outlet and more time being productive.
  • What You Get: Anker USB-C Hub (7-in-1), welcome guide, 18-month warranty, and our friendly customer service.

Choosing the right setting

Need Recommended declaration Watch for
Responsive paragraphs text-wrap: wrap; or the default Ordinary wrapping at available soft-break opportunities.
Prevent soft wrapping text-wrap: nowrap; The line may overflow its container.
Improve a short heading text-wrap: balance; Balancing is intended for a limited number of lines.
Improve composition in longer copy text-wrap: pretty; It can require more layout work; verify browser support.
Keep edited lines steady text-wrap: stable; Most useful in editable regions rather than static content.

Stopping text from wrapping safely

  1. Apply text-wrap-mode: nowrap (or text-wrap: nowrap) to the specific element, not an entire page or broad content region.
  2. Inspect the element at narrow viewport widths and with the longest realistic label.
  3. Decide how overflow should behave. If clipping or scrolling is appropriate, configure the element or its container with the relevant overflow rule; otherwise prefer a wrapping or truncation design that preserves access to the content.
  4. Test adjacent controls, zoom levels, and localization, because a one-line constraint leaves less room for longer translations.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Compatibility and specification status

MDN lists text-wrap-mode as Baseline 2024 and newly available since October 2024. Its reference page still recommends checking current support data (MDN: text-wrap-mode). Support for individual text-wrap-style values can differ, so check each value before making it a required part of a design (MDN: text-wrap-style). The shorthand reference is at MDN: text-wrap.

The syntax is defined in the CSS Text Module Level 4 Working Draft dated 14 August 2026. A Working Draft can change, so treat the specification as evolving and use feature checks or fallbacks where a particular style value is important.

Best Value
Anker USB C Hub, 5-in-1 USBC to HDMI Splitter with 4K Display
  • 5-in-1 Connectivity: Equipped with a 4K HDMI port, a 5 Gbps USB-C data port, two 5 Gbps USB-A ports, and a USB C 100W PD-IN port. Note: The USB C 100W PD-IN port supports only charging and does not support data transfer devices such as headphones or speakers.
  • Powerful Pass-Through Charging: Supports up to 85W pass-through charging so you can power up your laptop while you use the hub. Note: Pass-through charging requires a charger (not included). Note: To achieve full power for iPad, we recommend using a 45W wall charger.
  • Transfer Files in Seconds: Move files to and from your laptop at speeds of up to 5 Gbps via the USB-C and USB-A data ports. Note: The USB C 5Gbps Data port does not support video output.
  • HD Display: Connect to the HDMI port to stream or mirror content to an external monitor in resolutions of up to 4K@30Hz. Note: The USB-C ports do not support video output.
  • What You Get: Anker 332 USB-C Hub (5-in-1), welcome guide, our worry-free 18-month warranty, and friendly customer service.
Rank #4
Sale
UGREEN USB to USB C Adapter Combo 4-Pack, 10Gbps USB C Converter Space Gray
  • Dual Converters, Infinite Potential:Includes 2× USB C male to USB A female adapters and 2× USB A male to USB C female adapters. Perfect for a wide range of uses—tablets with Bluetooth keyboards, expand USB ports on macbook, and more. Two different converters for all your daily needs
  • Next-Level 10Gbps & 3A Charging: No more slow 480Mbps, this usb to usb c adapter has a transfer speed of up to 10Gbps, allowing you to do more transferring in less time. This usb adapter fits both USB A and USB C charger, supporting up to 3A fast charging
  • Upgraded Exquisite Craftsmanship: With an aluminum alloy housing and metal connector, the usbc to usb adapter is extremely durable and sturdy. Rigorously tested to withstand more than 10,000 times of plugging and unplugging, ensuring long-lasting performance
  • Broad Compatible: The usb c to usb adapter widely supports all USB C/ USB A devices like laptops, tablets, cellphones, car chargers, and phone chargers. Such as compatible with MacBook Pro/Air 2023/2022, Thunderbolt 4/3 Devices,Apple MagSafe Watch 9/8/7/SE/Ultra, iPad Pro 2022/2021, Samsung Galaxy S23/S20/S10, and iPhone 17/16/15 Pro. Plug and play
  • Please Note: To reach 10Gbps speed, keep the cable under 3.3 ft. For USB A Male to USB C adapters, try flipping the USB C connector. USB C Male to USB A adapters support bidirectional 10Gbps transfer within 3.3 ft

Quick decision guide

  • Choose wrap for content that must remain readable in responsive layouts.
  • Choose nowrap only when a single line is part of the component’s design and overflow has an intentional treatment.
  • Choose balance for short display text, not general paragraphs.
  • Choose pretty when line quality outweighs the potential layout cost and support is acceptable.
  • Choose stable for editing experiences where earlier lines should not continually move.
  • Use text-wrap when setting the mode and style together makes the intent clearer.

References

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.