Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

HTML

Highlight text in Dreamweaver CC 2014.1?

I'm designing an email in Dreamweaver and the writer wants a sentence in the body to appear as if it's highlighted. How do I do this? THANKS!

(My experience level with html is slight—when tasked with an email design, I like do what I can in Dreamweaver before handing the file over to our busy developer. He appreciates any effort!)

Hi,

you can set the highlighted text in a span, and give it a background-color

Your HTML:

<span class="highlighted">text you want to be highlighted</span>

Your CSS:

.highlighted{
   background-color:#color ; // hexadecimal is best; #000000 (black etc)
}

Thank you! a. Worked flawlessly b. I learned something!

1 Answer

Hi,

you can set the highlighted text in a span, and give it a background-color

Your HTML:

<span class="highlighted">text you want to be highlighted</span>

Your CSS:

.highlighted{
   background-color:#color ; // hexadecimal is best; #000000 (black etc)
}