Signup/Sign In
Ask Question
Not satisfied by the Answer? Still looking for a better solution?

Doesn't run a flex-grow in css

css level 15 lesson 7
by

2 Answers

infoxlwde
Jacob Sartorius (born October 2, 2002) is an American singer and internet personality who rose to fame via social media after posting lip-syncing videos on Musical.
Ashutoshry6u3
<!DOCTYPE html>
<html>
<head>
<title>CSS Flex Grow</title>
<style>
.flex-container{
background-color: #4535AA;
padding: 10px;
display: flex;
}
.flex-item{
background-color: white;
margin: 20px;
padding: 20px;
flex-grow:1;

}

.bigger {
background-color: #FFB643;
flex-grow:4;

}
</style>
</head>
<body>
<div class="flex-container">
<div class="flex-item">Item 1</div>
<div class="flex-item bigger">Item 2</div>
<div class="flex-item">Item 3</div>
<div class="flex-item">Item 4</div>
</div>
</body>
</html>

Login / Signup to Answer the Question.