
- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Usage of CSS align-items property stretch value
Use the align-items property with value stretch to stretch the flex-items.
You can try to run the following code to implement the stretch value
Example
<!DOCTYPE html> <html> <head> <style> .mycontainer { display: flex; height: 200px; background-color: red; align-items: stretch; } .mycontainer > div { background-color: orange; text-align: center; line-height: 60px; font-size: 30px; width: 100px; margin: 5px; } </style> </head> <body> <h1>Queue</h1> <div class = "mycontainer"> <div>Q1</div> <div>Q2</div> <div>Q3</div> <div>Q4</div> </div> </body> </html>
- Related Questions & Answers
- Usage of CSS align-content property stretch value
- Usage of CSS align-items property center value
- Usage of CSS align-items property baseline value
- Usage of CSS align-items property flex-end value
- Usage of CSS align-items property flex-start value
- Usage of CSS align-content property center value
- CSS align-items property
- Usage of CSS align-content property space-around value
- Usage of CSS align-content property flex-end value
- Usage of CSS align-content property space-between value
- Usage of CSS align-content property flex-start value
- Usage of text-align property in CSS
- CSS align-self property
- CSS align-content property
- Usage of CSS visibility property
Advertisements