Currently experimenting with flexbox to better understand its functionality. I have created the following layout: https://i.sstatic.net/rxvFD.png using the code provided below:
.container-1 {
display: flex;
flex-direction: row;
}
.container-1 div {
border: 1px #ccc solid;
padding: 10px;
}
.box-1 {
flex: 1;
flex: 0 0 0%;
}
.box-2 {
flex: 1;
flex: 0 0 0%;
}
.box-3 {
flex: 5;
flex: 0 0 60%;
}
<div class="container-1">
<div class="box-1">
<h1>Box One </h1>
<p>This is my first paragraph!</p>
</div>
<div class="box-2">
<h1>Box Two </h1>
<p>This is my second paragraph!</p>
</div>
<div class="box-3">
<h1>Box Three </h1>
<p>This is my third paragraph!</p>
</div>
</div>
If I wanted my third paragraph to appear as a sidebar on the right side of the screen, how would I accomplish that using flexbox? The traditional method of
position: absolute; width: 20%; left: 80%;
may not work with flexboxes. Any suggestions or insights would be greatly appreciated!