Quantcast
Channel: Joomla! Forum - community, help and support
Viewing all articles
Browse latest Browse all 1885

General Questions/New to Joomla! 5.x • Re: Alter css of article?

$
0
0
No, you don't set up the CSS inside articles, you use a custom CSS file (normally called "user.css" e.g. for Cassiopeia, but it may be called something else like "custom.css" depending on the template you're using.

I'd suggest a few quick lessons in how CSS works. My favourite resource for learning is https://www.w3schools.com/css/

You apply the class name to the element you want to style such as paragraph:

As a simple example

Code:

<p class="yourCSS">content</p>
The code for the CSS itself sits in "user.css" (or other as relevant):

Code:

.yourCSS { margin:10; padding:10; font-weight:bold;font-family:arial;}

Statistics: Posted by AMurray — Mon Apr 01, 2024 9:58 pm



Viewing all articles
Browse latest Browse all 1885

Trending Articles





<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>