Changing the colour on a single line of text
FiestaRed
Registered Users Posts: 146 Major grins
I would like to change the colour on one single line of text that's in a content block. Does anyone have the code please?
0
Comments
<span style="color: yellow">change this text only</span>
My Website index | My Blog
Thanks Allen, but it's in a CSS text block and it will not let me ad HTML. Whenever I add your code, it just keeps the "change this text only" and drops the rest.
You might consider using an HTML content element instead of a text content element.
If you are interested in an example, look at this page on my site - http://www.denisegoldberg.com/Kaleidoscope/. The text starting "Twist the kaleidoscope..." is an HTML content element, not a text content element. That allowed me to use html within the text.
Musings & ramblings at https://denisegoldberg.blogspot.com
The html I posted is good for simple postings, if there are a bunch of these on the page or similar pages
you could use <span class="myColorRed">change this text</span>
Then in CSS you can change them all with .myColorRed {color:red} with one rule.
My Website index | My Blog
Thanks again for all the help. I managed to add an HTML Content Block in the place where I wanted the coloured text.