I have code here
https://codepen.io/gg-the-solid/pen/eYQKBZd
.youtube-video {
border-radius: 16px;
aspect-ratio: 16 / 9;
width: 100%;
}
.column {
float: left;
width: 50%;
flex: 1;
}
.columns {
display: flex;
gap: 24px;
}
Where the youtube video on the left is responsive to be 100% of its columns width. I am trying to get a spacing of 32px between the two columns.
I have tried gap: 32px as well as padding-left: 32px; on the right column however doing that collapses the table.
2
Answers
One solution is to create a new div element that wraps all the content inside the right column and then add padding separately like so:
You just have to update your html, set the class of top div to
columns
and rename the youtube parent class tocolumn
. Your CSS is correct.