Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Here's an example of how the HTML and CSS could be changed to yield a beautifully responsive layout. I've added more paragraphs to the HTML so that it's easy to see that the amount of text does not affect the image position. Perhaps the biggest caveat here is that <code>figcaption</code> is rendered really strangely in relation to <code>figure</code> (I'm guessing that has something to do with the standard's definition of the default stylesheet for those elements), so unless this possibly changes in the future, you'll need to specify enough margin underneath the figure to encompass the caption.</p> <p><a href="http://jsfiddle.net/jjordanca/jDTBs/10/" rel="nofollow">http://jsfiddle.net/jjordanca/jDTBs/10/</a></p> <p><br /> HTML:</p> <pre><code>&lt;article&gt; &lt;figure class="cover"&gt; &lt;img src="" alt="" /&gt; &lt;time datetime="2013-08"&gt;Aug 2013&lt;/time&gt; &lt;/figure&gt; &lt;header&gt; &lt;h1&gt;Wo bewirtung zerfasert so kraftiger handwerke ri la kindliche&lt;/h1&gt; &lt;/header&gt; &lt;div class="row"&gt; &lt;figure class="related"&gt; &lt;img src="" alt="" /&gt; &lt;figcaption&gt;Empor hosen ich nur funfe szene seine. Wo ri so stuckchen kammertur pa bekummert schranken hemdarmel.&lt;/figcaption&gt; &lt;/figure&gt; &lt;div class="text"&gt; &lt;p&gt;Was mehrere fur niemals wie zum einfand wachter. Wu gewohnt langsam zu nustern dankbar. Messer all erzahl las zopfen darauf. Oden sie denn froh ohne dus. Schlafer hin ansprach geworden gelernte lauschte zugvogel mir das. Ist hochmut gebogen wendete das zweimal. Hoffnungen augenblick vertreiben es da wo zueinander kindlichen. Weg uns sohn hoch bei flu eins.&lt;/p&gt; &lt;p&gt;Ei ku jawohl en mi fertig hangen konnen gesagt. Dazwischen nachmittag ein eigentlich ist sog tat. Was dazwischen launischen das vorsichtig verrichtet eigentlich wie ein. Wahres gerber gro ehe tal kannst. Naturlich in da nachgehen schwachem gegriffen ja. Gearbeitet bugeleisen birkendose neidgefuhl die das dienstmagd.&lt;/p&gt; &lt;p&gt;Was mehrere fur niemals wie zum einfand wachter. Wu gewohnt langsam zu nustern dankbar. Messer all erzahl las zopfen darauf. Oden sie denn froh ohne dus. Schlafer hin ansprach geworden gelernte lauschte zugvogel mir das. Ist hochmut gebogen wendete das zweimal. Hoffnungen augenblick vertreiben es da wo zueinander kindlichen. Weg uns sohn hoch bei flu eins.&lt;/p&gt; &lt;p&gt;Ei ku jawohl en mi fertig hangen konnen gesagt. Dazwischen nachmittag ein eigentlich ist sog tat. Was dazwischen launischen das vorsichtig verrichtet eigentlich wie ein. Wahres gerber gro ehe tal kannst. Naturlich in da nachgehen schwachem gegriffen ja. Gearbeitet bugeleisen birkendose neidgefuhl die das dienstmagd.&lt;/p&gt; &lt;/div&gt; &lt;/div&gt; &lt;/article&gt; </code></pre> <p><br /></p> <p>CSS:</p> <pre><code>* {padding: 0; margin: 0;} article { position: relative; } img { border: 1px solid black; } .cover { width: 80px; text-align: center; font-size: 0.8em; display: inline-block; float: left; margin: 0 20px 10px 0; } time { display: inline-block; width: 80px; text-align: center; } header { margin: 20px 0 0 0; } h1 { position: relative; padding-left: 10px; font-size: 1.6em; } .cover img { width: 80px; height: 120px; } .row { display: inline; position: relative; } .text { display: inline; position: relative; font-size: smaller; } .related { display: inline-block; width: 200px; font-size: 0.8em; height: 100px; float: right; margin: 25px 0 50px 20px; } .figcaption { display: inline-block; float: right; } .related img { width: 200px; height: 100px; } * { border: 1px dotted #ccc } </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload