before-as-flex-container-ref.html (486B)
1 <!DOCTYPE html> 2 <html> 3 <head><meta charset="utf-8"> 4 <meta name="viewport" content="width=device-width"> 5 <title>CSS Test: ::before pseudo-element as a flex container - Reference</title> 6 <link rel="author" title="Deepith N" href="mailto:deepithdeekshith@gmail.com"> 7 8 <style> 9 div { 10 width: 200px; 11 height: 100px; 12 background: green; 13 display: flex; 14 justify-content: space-between; 15 } 16 </style> 17 </head> 18 <body> 19 <div> 20 <span>A</span> 21 <span>B</span> 22 </div> 23 </body> 24 </html>