I want a div with a fixed width image on the left and a variable width div with a background color, which should extend its width 100% on my device. I can\'t stop the second div
Try removing the float:left and width:100% from .header-right — the right div then behaves as requested.
float:left
width:100%
.header-right
div
.header { float: left; background: #efefef; background-repeat: no-repeat; width: 240px; height: 100px; } .header-right { overflow: hidden; background-color: #000; height: 100px; }