Trying to format the text in my expand/collapse question bar using angular. Below is a snippet of HTML/Angular code amongst many others.
<mat-expansion-panel hideToggle>
<mat-expansion-panel-header>
<mat-panel-title>
User Data Management
</mat-panel-title>
<mat-panel-description>
What is an agent?
</mat-panel-description>
</mat-expansion-panel-header>
<p>An agent is an individual hired to liaise with a user via the robot</p>
</mat-expansion-panel>
CSS
styles: [
mat-panel-description {
color: red;
align-content: center;
}
https://i.sstatic.net/dzaqu.png
Despite setting alignment to center, the red text remains misaligned. Any advice?