Keep floating divs on same line
问题 How do i keep two elements in the same row with fixed right column? I want right div to be with fixed size, and left column fluid, but when in insert long text to left one, then right one goes to the next column.. Example: http://jsfiddle.net/Jbbxk/2/ Is there any pure CSS solutions? NB! Wrap div must have dynamic width! For demostration purposes it has fixed witdh, so it will wrap. Cheers! 回答1: This is one common way of doing what you want: .wrap { position: relative; margin: 5px; border: