+ 1
What to do if background colour have to appear only till where Text ends not complete line ?
4 Answers
+ 2
Paragraphs run the length of the whole line, you could wrap a <span> around the text and apply the background there
<p>
<span style="background-color: grey"> this one
</span>
</p>
+ 1
That depends on which element has the background-color style applied to it. Post an example and someone will help you.
0
<p style={bgcolor:grey} >this one </p>
0
what actually is function of <span> tag