Skip to main content
Participant
February 22, 2022
Répondu

How to Change Text Color in Dreamweaver 2021

Hello forum, I hope all are safe and doing well. I am editing an HTML template. I want to change the color of the text in multiple areas. For instance I want to change the color of the word "Report" in one paragraph from black to red. What is the easiest way to do this in Dreamweaver 2021?

    Ce sujet a été fermé aux réponses.
    Meilleure réponse par Nancy OShea

    Create a reusable CSS class in your global stylesheet & save it.

    Add the class to desired heading, paragraph, span or list tags.

     

    CSS:

    .red {color:red}

     

    HTML:

    <p>Lorem ipsum <span class="red">Report</span> dolor...

    <p class="red">This is red text.</p>

    <p>This is normal text color.</p>

     

    <ul>

    <li class="red">this list item is red.</li>

    <li>This list item is normal color</li>

    </ul>

     

    1 commentaire

    Nancy OShea
    Community Expert
    Nancy OSheaCommunity ExpertRéponse
    Community Expert
    February 23, 2022

    Create a reusable CSS class in your global stylesheet & save it.

    Add the class to desired heading, paragraph, span or list tags.

     

    CSS:

    .red {color:red}

     

    HTML:

    <p>Lorem ipsum <span class="red">Report</span> dolor...

    <p class="red">This is red text.</p>

    <p>This is normal text color.</p>

     

    <ul>

    <li class="red">this list item is red.</li>

    <li>This list item is normal color</li>

    </ul>

     

    Nancy O'Shea— Product User & Community Expert
    TontypAuteur
    Participant
    February 23, 2022

    Thank you Nancy for your help. It's very much appreciated.