I'm sorry for the horrible title.
Essentially, I have a containing div
which contains two div
s with position: relative;
and float: left;
. The first div
is set to 200px
(by virtue of its contents) because everything it will contain is not meant to grow width-wise.
However, the second div
I want to grow only to the side of the containing div
. The containing div
does not have a set width as I have my screens vertical and I know most people have theirs horizontal. I test it on multiple computers, so I know what it looks like in both versions.
However, back to the point, in the second div
, if I put in a phrase longer than the rest of the containing div
, then the second div
drops to below the first div
. I don't want this second div
to have a set width, so is there a way to set a max-width? And if so, is there a way to set it to whatever the containing div
has left? I'd really like to not have to pull screen resolution and what not, so hopefully there's another way.
Thank you for the help.