Source Code:
(back to article)
Submit
Result:
Report an issue
<!DOCTYPE html> <html> <head> <style> div { clear: both; content: " "; display: table; } span { display: inline-block; width: 150px; font-size: 18px; padding: 10px 15px; text-align: center; color: #eeeeee; float: left; } span:nth-child(1) { background: #1c87c9; } span:nth-child(2) { background: #666666; } span:nth-child(3) { background: #8ebf42; } </style> </head> <body> <div> <span>Item List1</span> <span>Item List2</span> <span>Item List3</span> </div> <p>Some text</p> </body> </html>