If text in a table header or data cell stays on one line, find the white-space: nowrap (or white-space: pre) declaration affecting that cell or one of its ancestors and override it with white-space: normal. For a long URL or identifier with no spaces, add overflow-wrap: anywhere. On narrow screens, preserve a wide data grid in a keyboard-accessible horizontal scroller instead of forcing every column to become unreadably narrow.
What controls wrapping in table cells?
The white-space property controls whitespace processing and whether lines may wrap. normal permits wrapping at ordinary opportunities such as spaces; nowrap keeps the content on one line. The rule may be attached to th or td, but it can also come from a row, thead, tbody, tfoot, the table itself, or another ancestor.
For example, this section-level rule prevents its cells from wrapping:
tbody {
white-space: nowrap;
}
MDN’s table documentation shows this pattern in a responsive example; inspect the cascade rather than changing the table markup. See MDN’s <table> reference.
Quick wins for a faster PC:
Repair Windows errors before they cause bigger problemsFix Now →Fix the driver behind crashes, sound loss and screen glitchesFind Drivers →#1 Best Overall
- 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.
Restore ordinary wrapping
Apply the least-specific fix that matches your design. To restore wrapping across the table, use:
th,
td {
white-space: normal;
}
If a more specific selector or an inline style still wins, remove or override that declaration at the source. Use !important only as a temporary diagnostic, not as the normal solution.
Rank #2
- 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.
Handle URLs and other unbroken strings
Allowing breaks at spaces does not split a single long URL, hash, filename, product code, or other token. Add an overflow rule when those values can exceed the cell width:
th,
td {
white-space: normal;
overflow-wrap: anywhere;
}
overflow-wrap: break-word is an alternative. word-break: break-all is more aggressive because it can split text at almost any character, so use it only when that behavior is acceptable. For a known meaningful location in a long value, insert an HTML <wbr> opportunity. MDN documents these choices in Wrapping and breaking text.
What’s actually slowing this PC down?
Pick the symptom - the matching free tool is one click away.
Rank #3
- 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.
Choose the right text rule
| Need | Rule | Effect and caution |
|---|---|---|
| Normal prose in cells | white-space: normal |
Wraps at normal word opportunities. |
| Keep a value on one line | white-space: nowrap |
Suppresses wrapping; provide a deliberate overflow treatment. |
| Break long URLs or identifiers | overflow-wrap: anywhere or break-word |
Creates breaks when a token would overflow. |
| Split text very aggressively | word-break: break-all |
May break in the middle of ordinary words and reduce readability. |
Check table sizing and layout
Wrapping only helps if the cell has a constrained width. With the default automatic layout, a table can grow to accommodate its contents, so it may remain wider than its container even when a width is specified. MDN’s table-layout reference explains that fixed layout has a predictable effect only when the table has a specified width.
.table {
width: 100%;
table-layout: fixed;
}
.table th,
.table td {
white-space: normal;
overflow-wrap: anywhere;
}
Fixed layout can make columns narrower and encourage wrapping, but it can also clip content when combined with fixed heights, overflow: hidden, or ellipsis styles. Those techniques conceal information; do not treat hidden text as a wrapping fix. Remove clipping or ellipsis when every value must remain discoverable.
Rank #4
- 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
When a horizontal scroller is better than tighter wrapping
A comparison or data table with many columns may be more usable as a preserved grid that scrolls horizontally on small screens. The W3C Design System states: “The grid structure of data tables must remain intact, no matter the available space.” Its Tables guidance recommends retaining the real table structure and providing scrolling when necessary.
<div class="table-scroll" tabindex="0" aria-label="Scrollable data table">
<table>...</table>
</div>
.table-scroll {
max-width: 100%;
overflow-x: auto;
}
Keep the semantic table, header associations, and keyboard access. A wrapper with focus support lets keyboard users reach the overflow region; a visible label explains why horizontal scrolling is available.
Windows Errors? Fix Them Before They Spread
Repair common Windows errors and clear accumulated junk for a smoother, more stable PC - no reinstall needed.Free scan · no reinstallOutdated Drivers Are Slowing You Down
One free scan finds every outdated or missing driver and matches the right update for your exact hardware.Free scan · exact hardware matchBest Value
- 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.
A practical debugging sequence
- Inspect the failing cell. In browser developer tools, view its computed
white-spacevalue and the matching rule that supplies it. - Trace ancestors. Check the cell, its row,
thead/tbody/tfoot, the table, and other ancestors fornowrap,pre, inline styles, or a higher-specificity selector. - Test the baseline override. Temporarily apply
th, td { white-space: normal; }. If wrapping returns, remove or narrow the original no-wrap rule. - Test long-token handling. If ordinary sentences wrap but a URL still overflows, add
overflow-wrap: anywhereor a deliberate<wbr>. - Evaluate layout. Compare automatic and fixed table layout with a specified table width. Check for clipping, ellipsis, fixed heights, or a container that is itself too wide.
- Choose the mobile behavior. For dense data, test a labeled horizontal scroller before forcing every column into multiple awkward lines.
Common causes that look like a wrapping bug
- A global utility class applies
white-space: nowrapto all table content. white-space: nowrapis set ontbodyor another ancestor, so individual cells inherit it.- The value is one unbroken token; normal wrapping works, but there is no legal break point.
- Automatic table layout expands the table instead of shrinking columns.
- Clipping or ellipsis hides wrapped lines, making the cell appear not to wrap.
Correct the rule that causes the behavior, then decide whether the content needs token breaking or a scrolling grid. That preserves both readable text and the table’s relationships.
Quick Recap
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.

