Hello all. I am working on the new version of my personal website and I chose Grav. I am using the “Editorial” Theme, but I am facing an annoying small challenge: image alignment.
I followed the online documentation and what I need is to align it on the right. I wrote this:
I tried by using “float-right” instead of “right”, I also tried to remove the alt text between ““, but it did not change anything, the image stays at the top left.
@ramenos, It feels like there is a misconception of how Markdown for images work..
Depending on you interpretation, there could be two things going on…
You might be thinking that ?class=right should align the image to the right.
It doesn’t… It only adds attribute class="right" to the <img> element.
You should use parameter style instead like;
Your interpretation might be right about ?class=right and you just forgot to create the matching css. You should add the .right selector to the correct css file:
The image class is original from the Editorial theme, from HTML5Up, and includes more styles, such as borders, etc. The author of the original theme may want to apply those styles to all images.