<!DOCTYPE html> <html> <head> <style> span { background-color: yellow; } span.ex1 { min-width: 500px; display: inline-block; } </style> </head> <body> <h1>The min-width Property</h1> <h2>min-width: none (default):</h2> <span>Lorem ipsum dolor sit amet...</span> <h2>min-width: 500px:</h2> <span class="ex1">Lorem ipsum dolor sit amet...</span> </body> </html>
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter