+ Start a Discussion
Hiteshkumar Chaudhari 2Hiteshkumar Chaudhari 2 

how to align text in centre or left or right and having custom color text

Hello guys,

I want to display some text in the centre with custom color and height .

Can anybuddy tell me "how can i do this?"

thanx in advance
 
 
sfdcMonkey.comsfdcMonkey.com
hi HiteshKumar
try below sample code
<apex:page>
    <style type="text/css">
        .customCss{
        line-height: 90%;
        text-align:center;
        color:red;
        
        }
    </style>

    <p class="customCss">This is some strong text!</p>
</apex:page>
output-:
User-added image
thanks let me inform if it helps you.