Given two blobs of HTML (explicitly without saying what they are) how do I make them layout next to each other?
I've seen lots of questions that place more restrictions on it: "they are div elements", "use CSS", "they need to float", "they should be the same width" or "have some ratio". All I want is to place them next to each other. If the screen is wide enough, they should have no effect on each other's internal layout. I want it to look the same as if you took screen shots of each as it's own page and pasted them together. If the screen's not wide enough, it should do something reasonable, which can include require side scrolling. And I'm looking for an answer that's reasonably correct regardless of what the blobs are. I've no particular opinion on CSS so I don't care if it's used or not as long as it's robust and not in the least finicky.
An ideal solution would consist of three strings that can be concatenated with the blobs and expected to work:
concat(Head, blob1, Mid, blob2, Tail)
bonus points if it can be extended to more blobs:
concat(Head, blob1, Mid, blob2, Mid, blob3, Tail)
EDIT: The motivating case is: Somewhere in a page I need to places two things side by said. I have no control over what comes before or after and I know very little about the things (other than that they are syntactically complete). Whatever I do may be done multiple places in the page or even inside one of the things I've been give, and I won't know about it. I may make no assumptions or requirements other than the use of a reasonably modern browser.
In short, any answer that use the word "if", likely isn't what I'm looking for.