I know my css, that's not the problem here. The problem is that while I am able to assign a custom css-class to the article, thereby change the background, I can't seem to change any of the elements inside the article (for example p & img)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 exampleThe code for the CSS itself sits in "user.css" (or other as relevant):Code:
<p class="yourCSS">content</p>
Code:
.yourCSS { margin:10; padding:10; font-weight:bold;font-family:arial;}
So, in essence, the following works great:
.about-us {
background-color: blue;
}
BUT, the following does nothing:
.about-us img {
width:300px;
}
Statistics: Posted by SocketPup — Tue Apr 02, 2024 4:09 am