Muut Archive Legend
@Muut · Joined 9 years ago · 18337 posts · 3878 topics · 137 reputation
Badges
Recent posts
-
Center Image using Markdown
· 11 years ago
BTW: See post http://getgrav.org/forum#!/general:center-a-picture-with-grav
-
Center Image using Markdown
· 11 years ago
@andreafa Unfortunately not. Adding classes to text paragraphs is not supported in Markdown. You may try it here http://parsedown.org/extra/ to convince yourself and play a little bit around. The only
-
Center Image using Markdown
· 11 years ago
For me it works only with images:  {.center} If I try with text, the webpage shows the code, without changing the alignment: text {.center} Am I missing something?
-
Center Image using Markdown
· 11 years ago
BTW, there is an assets plugin that lets you dynamically add CSS and JS to a page without using Twig (which you can do also): https://github.com/getgrav/grav-plugin-assets
-
Center Image using Markdown
· 11 years ago
Find this in the documentation.
-
Center Image using Markdown
· 11 years ago
Or - WHERE and with which syntax can I define the {.center}-class? It is not possible, to enter it directly in the frontmatter-field. In plain HTML I would use STYLE in the head ...
-
Center Image using Markdown
· 11 years ago
Thanks for you answer! Can I enter the CSS directly in the Frontmatter-field or do I need to create a custom.css-file?
-
Center Image using Markdown
· 11 years ago
You can use markdown extra with special attributes and put a class on the image. Then center the image with the CSS Class:  {.center} the css: display: block; margin: 0 auto; More i
-
Center Image using Markdown
· 11 years ago
Hi! Is there way to center images (and text) using Markdown? I tried the following: <div align="center" markdown="1"> code here </div> and also -> code here <- but neither text nor
-
Simple search form
· 11 years ago
The above example I pasted is assuming this is in teh page header of the /blog page. The form submits to the same page, and because there is a query param, search is run. Becuase the filters say @se