Recommended Free Tools
Place the image and text in one wrapper, set the wrapper to position: relative, and position the text with position: absolute. The wrapper needs a dependable size because absolutely positioned text does not contribute to its height. Use real HTML text, then check the crop, contrast and layout at narrow widths and enlarged text sizes.
The basic CSS overlay pattern
This pattern uses an image element and anchors a heading near the bottom of its wrapper. The CSS is illustrative; adjust the frame height, crop and spacing to suit your design.
<div class="hero">
<img class="hero__image" src="scene.jpg" alt="A hiker looking across a mountain valley">
<h1 class="hero__title">Find your next trail</h1>
</div>
.hero {
position: relative;
overflow: hidden;
}
.hero__image {
display: block;
width: 100%;
height: 24rem;
object-fit: cover;
object-position: center;
}
.hero__title {
position: absolute;
inset: auto 1.5rem 1.5rem;
margin: 0;
color: white;
background: linear-gradient(transparent, rgb(0 0 0 / 70%));
padding: 3rem 1rem 1rem;
}
position: relative makes the wrapper the containing block for the heading’s offsets. inset: auto 1.5rem 1.5rem leaves the top unset and positions the heading 1.5rem from the wrapper’s left, right and bottom edges. overflow: hidden clips content at the frame boundary; remove it if the design needs content to extend outside the image.
Since the heading is removed from normal flow, it does not make the wrapper taller. Give the image or wrapper a height or aspect ratio appropriate to the design. Without a positioned ancestor, the overlay may be positioned relative to a different ancestor or the initial containing block instead.
Do these 3 things before closing this tab:
1Clear out junk files and repair common Windows errors2Fix the driver behind crashes, sound loss and screen glitches3Repair Windows errors before they cause bigger problems#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.
Choose an image element or a CSS background
Use an image element when the image carries meaning
An <img> can have alternative text, so it is the better choice when the picture communicates information. Write alternative text that conveys the image’s relevant content; use an empty alt value only when the image is decorative. Setting dimensions or an aspect ratio helps reserve space before the image loads. For a fixed frame that intentionally crops the source, use object-fit: cover; object-position changes which part remains visible.
Use a background image for decoration
A CSS background is suitable when the image is decorative and the page’s meaning is supplied by real text. Background images are not announced to screen readers as meaningful images and have no built-in text alternative. Set a fallback background color so the text remains readable if the image cannot load.
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.
.hero {
position: relative;
min-height: 24rem;
color: white;
background-color: #263238;
background-image:
linear-gradient(0deg, rgb(0 0 0 / 70%), transparent 65%),
url("scene.jpg");
background-position: center;
background-size: cover;
}
With a background, background-position controls where the image appears inside its area. The gradient and image are separate background layers; tune the gradient direction and strength for the text’s location. Keep the words as HTML rather than embedding them in the image so users can select, resize and adapt the text.
Keep the overlay readable and responsive
- Check contrast where the text appears. MDN’s accessibility guidance gives a contrast ratio of 4.5:1 for ordinary text and 3:1 for large text (24px or larger, or bold text of approximately 18.66px or larger), following WCAG guidance. Evaluate the actual image crop behind the text; a gradient or solid panel may help, but does not guarantee sufficient contrast by itself. See MDN’s gradient accessibility guidance.
- Allow the text to wrap. Constrain its width and use spacing that can shrink. Check long headings and localized text rather than assuming the short sample will fit.
- Test small screens and zoom. Change the overlay placement or let it stack with content when the image frame is too short. Positioned content must not obscure other content when a user enlarges text. See MDN’s positioning accessibility guidance.
- Check the crop. A centered focal point may not remain visible at every viewport. Adjust
object-positionfor an image element orbackground-positionfor a background.
Common problems and fixes
- The text appears in the wrong place: confirm that the intended wrapper has
position: relativeand that the overlay is inside that wrapper. - The wrapper collapses or has no useful height: the absolute overlay does not size its parent. Give the image or wrapper a height or aspect ratio.
- The image is stretched or the subject is cropped out: for an image element, use
object-fit: coverand adjustobject-position; for a background, adjustbackground-position. - The text is hard to read over some images: assess contrast at its actual location and strengthen or reposition a gradient or add a solid text panel.
- The overlay overflows on mobile or at larger text sizes: let it wrap, reduce or make padding flexible, constrain width, and change its placement or switch to a stacked layout.
- The picture disappears but the text remains: provide a contrasting fallback background color. If the image carries meaning, use an
<img>with suitable alternative text rather than relying on a CSS background.
Or skip the browser setup
If you need a screenshot of the finished page rather than a browser capture workflow, ScreenshotNeo returns an image or PDF from one GET request. The example saves a WebP screenshot of the page; replace the URL with your own and provide your API key. See the ScreenshotNeo API documentation for options.
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.
curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://stripe.com -o shot.webp
ScreenshotNeo accepts cookie and consent banners and removes more than 60 known consent platforms, newsletter popups and chat widgets before capture; those steps can be turned off. Bot checks, blank pages, timeouts, failed loads and cache hits cost nothing, and response headers report the page verdict and billing status. Its MCP server provides screenshot tools for AI agents, including Claude, Cursor and other MCP clients. The free plan includes 1,000 screenshots per month with no card; paid plans start at $5 for 3,000.
Sign up for ScreenshotNeo free: 1,000 screenshots a month, no card required.
Quick Recap
Best 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.
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
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.

