Okay back to the basic lesson
Remember, it’s only because we have defined a div class, like this
<div class=”my-totals”>
<?php (code here) ?>
</div>
that this works at the bottom of style.css
.my-totals
{
paramaters here;
}
otherwise, neither of those codes will do anything. They work together.
so, any time you want to style php code output, you must create a div class for it. This can become quite complicated in some situations, where it can be difficult to isolate the element you want to style, but you can do basic things by adding classes this way.