HTML Compiler Online
Javascript Online Compiler
index.html
Change Theme
Compress code
Format code
Download Code
Clear Code
Copy Code!
RunĀ
ctrl+s or click
Output
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>CSS - align items baseline</title> <style> .container { display: flex; align-items: baseline; height: 150px; background: #7E89B4; border: 2px solid #4B5681; } .container div { margin: 6px; color: white; font-size: 18px; font-family: sans-serif; padding: 10px 15px; background: #353C5A; } </style> </head> <body> <h2>align-items: baseline</h2> <p>flex item aligned along their baseline.</p> <div class="container"> <div>1</div> <div style="font-size: 12px;">2</div> <div>3</div> <div style="font-size: 35px;">4</div> <div style="font-size: 50px;">5</div> </div> </body> </html>
RunĀ