Replies: 2 comments 1 reply
-
|
I'd probably go with option 2:
I think that's the typical approach if you're using something like a CSS reset and want to customize your site with your own custom styles or use Tailwind, etc. |
Beta Was this translation helpful? Give feedback.
-
|
Thank you! That's the direction I'm taking ... a few CSS intro pages and I'm off and running with my own nascent CSS 😃, but I don't understand the relationship between a markup in the Markdown source page and what HTML / class / CSS gets applied. In my example a line starting with (I went and learned a bit about Tailwind and I think it's a little advanced for me for now) |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello - super-noob disclaimer: redirect or educate me, TIA.
Q: How can I control what HTML/CSS results from my markdown source data?
Is there a way to define in the Liquid/Nunjucks layout that given Markdown syntax should be rendered with a particular CSS class or selector?
For example maybe there's a second-level header:
## Hello World!becomes:
...and in the CSS there's a section that might say:
What I would like to do, is re-define the way all second-level headers show up. Now, i can think of a few ideas, but because I can barely spell CSS I'm not sure which of these are might be bad ideas and why.
Some ideas:
<h2>with some class selector maybe?Is this last idea possible?
And what would be a good way to handle only changing the style of an element on an occasional or one-off basis? Could I, say highlight some text by calling a CSS selector using some Liquid? (and at that point why not just HTML inline styling?)
Thanks for any insights.
--jg3
Beta Was this translation helpful? Give feedback.
All reactions