sudhakarinfotech
(current)
Run Code
Live Code Editor- Flex justify-content: flex-end
Source Code
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>CSS Flex </title> <style> .flex-container { display: flex; justify-content: flex-end; background-color:lightgray; } .flex-item{ width:100px; height:100px; background-color:orange; color:white; text-align:center; line-height:100px; margin:10px; } .bg-info{ background-color:#17A2B8; } .bg-primary{ background-color:#007BFF; } .bg-warning{ background-color:#FFC107; } </style> </head> <body> <h2>Justify-content:start</h2> <div class="flex-container"> <div class="flex-item bg-info">Flex Item 1 </div> <div class="flex-item bg-primary">Flex Item 2 </div> <div class="flex-item bg-warning">Flex Item 3 </div> </div><!--/container--> </body> </html>
Source Code Output :
Running