CSS: Display two div’s next to eachother (left: dynamic, right: fixed size)
by admin on Jan.03, 2017, under Programming
Result:
divB
divA
HTML Code
<div id="container"> <div id="divB">divB</div> <div id="divA">divA</div> </div>
CSS Code
#divB { float:right; border:1px solid red; width: 100px; } #divA { border:1px solid aqua; display: flex; }