I have a div which has float: left, and a div which has float: right. The div which has float: left has a width of 50px, while the div which has float: right should take up the remaining horizontal space in the parent div.
How can I accomplish this with CSS?
Try using
margin-left:60px(or whatever width your left div could be) without usingfloatin the right div. See related fiddle here: http://jsfiddle.net/CKcQH/CSS:
Html: