All of the following assumes you are creating/editing a post in WordPress and have switched over to the text view in the editor.
In general, all inline elements will be wrapped in a <section>
tag with the .grid and .inline-element classes:
<section class="grid inline-element">
Additionally, to get some styles specific to a given type of inline element, you'll typically add one additional class, for example:
<section class="grid inline-element image-grid">
The .grid class makes available a number of additional classes from the reflex grid framework (http://reflexgrid.com/docs/) and will typically require additional <div>
tags with the correct classes to take full advantage of the grid system.
For example, if you want a two up display of photos at larger screen sizes that display in a single column on smaller screens, you can do the following:
<section class="grid inline-element image-grid">
<div class="col-md-6 col-sm-12">
[your photo]
</div>
<div class="col-md-6 col-sm-12">
[your photo]
</div>
</section>
As a reference, here are the current breakpoints defined for our site:
$reflex-xs: 576px
$reflex-sm: 768px
$reflex-md: 992px
$reflex-lg: 1200px
$reflex-xlg: 1600px
Typically using a .col-md-X
class is equivalent to all "desktop" sizes and a .col-sm-X
class would apply to all "mobile" sizes.