If I put in a new
tag eg:
<p>lorem ipsem blah blah blah <p class="special-colour">special phrase</p><p> lorem ipsem blah blah blah</p>
I get linefeeds which is not what I want.
Also do I need to explicitly return to the style that I was using or will it be assumed unless overridden by the class=”foo-bar” attribute?
I realise that question probably goes to specificity which I’m yet to get on top of, since I don’t really know what hierarchies naturally exist in HTML/CSS documents, I’m just wading into it all ATM.
Use a
<span>:it’s an “inline” element so will not cause a line feed.
And yes, the
next parttext will automatically “revert” to the style applied to thepelement.Your css for the
spanwould be something like:Also, I can tell you are a UK-English speaker – be very careful with your use of
colorvs.colour!