When you resize the example horizontally the right box will fall under the left box, which is fine. But I would like the parent div (wrapper) to become a wide as the widest child at the moment.
I would like to solve it using css only and without a magic number media-query thingy, but I can’t work it out :(
CSS can’t detect content shifts or changes…it can only style things based on what you tell it to do.
If you’re setting fixed widths on things and need them to do something different when the combined widths are to much you either need media queries or javascript.
Author
Posts
Viewing 4 posts - 1 through 4 (of 4 total)
The forum ‘CSS’ is closed to new topics and replies.