Skip to main content
Participant
February 22, 2022
Answered

How to Change Text Color in Dreamweaver 2021

  • February 22, 2022
  • 1 reply
  • 973 views

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?

    This topic has been closed for replies.
    Correct answer 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 reply

    Nancy OShea
    Community Expert
    Nancy OSheaCommunity ExpertCorrect answer
    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
    TontypAuthor
    Participant
    February 23, 2022

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