Help - Search - Members - Calendar
Full Version: Highlight text
Movable Type Community Forum > Additional Resources > Tips and Tricks
dkeiger
I've come across a few MT blogs in which text has been highlighted with a transparent color, as if done with one of those textbook highlighters. When I view source, the tags are emphasis or strong, which suggests the stylesheet has been modified to change those tags.

Anyway, how do I highlight text in html? Thanks.
stepan
You can use the background CSS attribute to specify color.  For example, if you want a yellow background for your strong tags, you can have a CSS style like so:
CODE
strong { background: yellow }

If you want to highlight inline in HTML, you can do it like so:
CODE
Here is a <span style="background: yellow">yellow background</span> example.
which then looks like this:

Here is a yellow background example.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.