I want to do the following:
column A, be as width as the maximum listitem | column B, be as width as place left, with having horizontal scrollbox when overleaps.
WIDTH:auto | WIDTH: 100%;
list1 | adklajd lkasjdlk ajs kldajlkjd kalsd
list222 | sdfsf
list33 | sdfsdffds
| xxx
how to do this? Its not even easy.
EDIT: http://jsfiddle.net/Y3p9F/
and column B goes to new line, I dont want it
You can use a combination of
floatandmarginto achieve this:And the CSS:
JS Fiddle demo.
(Tested only in Chromium 22/Ubuntu 12.10.)