themeblvd / jumpstart

The most extensive WordPress theme for both users and developers from Theme Blvd
http://wpjumpstart.com
GNU General Public License v2.0
5 stars 2 forks source link

Displaying `inline-block` screws with image element spacing in some instances. #397

Closed themeblvd closed 6 years ago

themeblvd commented 6 years ago

In regards to the layout builder's image element, the display: inline-block styling is needed for images when:

In the above case, without inline-block the wrapping link will display 100%.

screen shot 2018-04-13 at 12 55 41 pm

This is why the current inline-block styling exists. However, in cases where the image is 100% width of the container, this isn't actually necessary. And in some cases, this actually screws with the spacing of images stacked against each other.

So we should figure out a way to only apply display: inline-block if the image isn't full-width.