+ Start a Discussion
Div SnkDiv Snk 

Need help to change the color of font

Hi

We are using slds in one of our Vf page. One of the line of the page states that :

<label class="slds-align-middle">Mandatory Information</label></div>'

I want to make this text 'Mandatory Information' appear in Red. Can someone help me what changes do I need to do to or what should I add in the above line to make the text appear in Red?

Thanks
Steve_DoddSteve_Dodd
Hi Div,

This should work...


<style>
body {
        color: red;
}
h1 {
        color: #00FF00;
}
p {
        color: rgb(0,0,255)
}
</style>
</head>
<body>
<label class="slds-align-middle">Mandatory Information</label></div>


...and if you would also like to make the text bold, add a <b> before and a <b> after your text (Mandatory Information) 
Div SnkDiv Snk
Hi steve

Thanks for your response.
However I simply used <label class="slds-align-middle"> <font color ="red">Were there any ethical concerns? </font></label> and it did the job for me.