Jump to content


This topic is now archived and is closed to further replies.


Text and Image Flow

Recommended Posts


I'm building a site where I have 3 sections.  


The first with an image on the left and text on the right.  The second section text is on the left but image is on the right.  The third section is like the first with the image on the left and text on the right.  


When the site scales I want all the image to move above their respective section's text.  This isn't a problem with the first of third section but for the second section how do I make the image position above the text instead of below?


I was planning to use a combination of text and media boxes.  Will I need to target the box and adjust float or should I duplicate the section and then show/hide based on screen size?

Share this post

Link to post
Share on other sites



You have a number of options to choice from.

1. You could just use one MediaBox and use the PageLines grid to add your image and text, then use custom CSS to change their position on mobile devices. Like so:


<div class="row">

  <div class="span6"><img src="..." alt="..."></div>

  <div class="span6">

    <h2>Title here</h2>





2. Use a custom class on the MediaBox displaying the image and use media queries to force it into position.

3. Use multiple sections like you suggest above and then use the show/hide option.


You could also use a combination of 1 & 3.

Please search our forums, before posting!

Share this post

Link to post
Share on other sites

So something like this should work?  Could I use the section id as the container and then the media box and text box as the other elements?



<div id=”container-div”>
<div id=”elem1″>This is the first element</div>
<div id=”elem2″>This is the second element</div>
<div id=”elem3″>This is the third element</div>



#container-div { display: table; }
#elem1 {display: table-row-group; } /* Displays between the other elements */
#elem2 {display: table-footer-group; } /* Displays below the other elements */
#elem3 {display: table-header-group; } /* Displays above the other elements */

Share this post

Link to post
Share on other sites

Yeah I don't see why not, give it a bash. You may require additional CSS, but I could be wrong. As I haven't tested this myself.

Please search our forums, before posting!

Share this post

Link to post
Share on other sites

  • Similar Content

    • Lisa Haran
      By Lisa Haran+
      I have a map here http://www.iloveoffset.com/maps/
      I want to add several pointer locations to the map, but when I do they do not appear.
      On this map there are 2 pointer locations and as you can there is only one visible.
      Earlier today I added 7 and could only see 4 so there is something odd going on.
      My theme is up to date
    • clj182
      By clj182+
      I've been having trouble unlocking the template section for past couple of weeks. When I try clicking nothing happens. 
      I've deleted my custom css and removed plugins. Im down to having only the following plugins:
      Contact Form 7
      DMS Professional Tools
      Pagelines Updater
      It was working fine before i have no idea what's going on with it.
    • flourishdesignstudio
      By flourishdesignstudio+
      My DMS 2 site http://www.heart-stone.com/ will not save any new custom css... I can still edit templates and publish those but any custom css that I enter never saves.
      All WP files, themes, and plugins are up to date. 
      Any thought about what might be causing this?
    • flourishdesignstudio
      By flourishdesignstudio+
      Is there a way to edit the custom CSS via FTP? I know I can edit the custom code in the Chrome editor but is there a file path I can use to find and edit the CSS directly from our FTP?
      Thanks in advance for the help!
    • nizami
      By nizami+
      Using navbar section with correctly configured WP menu to display main navigation at https://elenaangel.com. 
      All fine in desktop viewport. Menu displays twice in hamburger mode. How to fix this please?