Currently, I am in the process of transitioning my website stacktips.com from using Bootstrap to Tailwind CSS. While initially, it seemed like a simple task and I was able to replace all the static HTML with tailwind classes successfully. However, now I have reached a roadblock as I am unsure how to style the dynamically generated HTML.
For example, in the scenario provided below, all the content within the <article>
element is created dynamically and I do not have the option to directly apply CSS classes to those elements.
<article class="article-content">
<p>some text</p>
<h2>Heading 2</h2>
<p>some text</p>
<pre>some text</pre>
</article>
I am seeking guidance on how to add styles to the p
, h2
, and pre
tags under the article-content
division. These styles should be unique and separate from the global styling being applied.