I am looking to have two divs in the same row in HTML, where one remains a constant width while the other adjusts its size as the end user increases the web page.
My initial attempt was to define a parent div with two child divs like this:
<div>
<div style="float:left" width="20px">first div</div>
<div style="float:left" width="100%">second div</div>
</div>
Unfortunately, this setup did not work as intended!
Can anyone advise on how to create two divs within the same row, where one has a fixed size and the other size is relative?