I have php that is generating content within <p> tags. I have two classes that I want to use.
Looks something like:
foreach ($record as $r){
print "<p>" . $r['content'] . "</p>";
}
One class is called readmore. I want to assign it to anything with an <a href>.
The other is called list01. I want to assign it to any <ul> tags.
Could anyone assist?
Add a class to your paragraph so that you can distinguish it from others, then use this CSS:
You do not need to target those elements directly with a class since you can target them by the parent child relationship they have to the paragraph