I'm using the free Starter theme on Ghost and I'm trying to make the image centered but wider than the paragraph and the main element (60rem).
Here are the main CSS elements that hold the image in place, I can get the image to the full width (I use 1100px wide images) when I change the max-width in img to 150% but it's not centered that way, it sort of floats to the right.
I mocked up the rough jsfiddle for this - https://jsfiddle.net/zbsa7ech/
img {
display: inline-block;
max-width: 100%;
min-height: 0;
height: auto;
vertical-align: middle;
border-radius: 5px;
}
The only way I managed to get the desired result is to put the max-width to 200% and margin-left: -254px
Any solutions to simply put the image in the center of the container without resorting to negative margin left?
You can add a class to the paragraph tag like this fiddle
css