I'm trying to get this div
to show up as the proper height
(without manually setting the height
to a fixed number such as 75px
).
So that it looks like:
------------------------------------------
| something | something else |
------------------------------------------
https://jsfiddle.net/2fLr6enx/
I use float
on the left div
, so that it will always pull left and have the left div
and right div
on the same line (even if the right div
is a very large image).
This, however, can make the div
container smaller in height
than the left div
(it matches the height
of the container to the right div
)
I have tried to make this work with inline-block
, table-cell
, and other css
, however cannot get it to work where they are both definitively on one line, and the height
of the container contains both of them.
How would I achieve this?