I'm currently working on implementing a design effect similar to the one shown below:
on my website (), but I'm struggling with getting the HTML and CSS just right. When I move the map to float up on the right side, it doesn't drop below the text when the width is reduced. I've tried different approaches but haven't found the perfect solution yet. Any suggestions would be greatly appreciated. Thank you!
EDIT - Apologies for the lack of information in my initial post. I am using a responsive layout (WP Twenty Thirteen theme). If I set the text div to float: left
and the map iframe to float: right
, the text div takes up the entire width, causing the map to drop down. I want the text div to resize along with the window without setting a specific width. (I prefer not to have to adjust the map's dimensions as well by using percentage widths.)
Placing the iframe first in the HTML code keeps the map at the top without specifying a width (similar to the first three frames in the illustration), but then it doesn't drop below the text. To achieve the desired effect in the last frame of the GIF, I had to move the iframe back below the text.
Is there a way to achieve what I want without defining a width for the text div? If not, I might have to settle for the map resizing accordingly. However, I'd prefer to avoid that solution if possible.