css set to div block next too each other
Posted: Sun Sep 16, 2018 7:27 pm
Hi,
I have a problem in setting to div-boxes net to each other?
I have a problem in setting to div-boxes net to each other?
Forum of Webmaster2020.com
https://www.webmaster2020.com/forum/
Code: Select all
<div id="parent">
<div id="part1">(200px)</div>
<div id="filling">(rest of width)</div>
</div>
Code: Select all
#parent {
display: flex;
}
#part1 {
width: 200px;
background: lightblue;
}
#filling {
flex: 1;
/* Grow to rest of container */
background: lightgreen;
}