How about a CSS only solution? Add this rule:
figure:nth-of-type(3n+1) {
clear:left;
}
More Related Contents:
- My Website is Mirror-flipped on iPhone Devices
- Fill SVG path element with a background-image
- How to change source of tag on hover?
- Heights rendering differently in Chrome and Firefox [duplicate]
- White space at bottom of anchor tag
- How to fallback to local stylesheet (not script) if CDN fails
- Embed image in a element
- Using CSS :before and :after pseudo-elements with inline CSS?
- Make a div fill up the remaining width
- Highlight label if checkbox is checked
- Tools to selectively Copy HTML+CSS+JS From A Specific Element of DOM [closed]
- How to apply two CSS classes to a single element
- Why does percentage padding break my flex item?
- What makes the text on a element vertically centered?
- How to hide drop down arrow in IE8 & IE9?
- Table tbody scroll in IE8
- difference between width auto and width 100 percent
- How can I prevent the scrollbar overlaying content in IE10?
- Change the color of a bullet in a html list?
- Font awesome is not showing icon
- CSS3 border-radius clipping issues
- How to make a border overlay child div?
- Inverted Scooped corners using CSS
- CSS transform origin issue on svg sub-element
- transition for background-image in firefox?
- CSS Layout 2-Column fixed-fluid [closed]
- Create a Reverse Clip-Path – CSS or SVG
- Can you style ordered list numbers?
- Div with horizontal scrolling only
- Best Way to do Columns in HTML/CSS