html - Applying background color for paragraphs having -ve text indent -
in 1 of html page have paragraph tags shown below.
<p style="margin-left: 0.5in; background-color: #656565;text-indent: -0.25in; text-align: justify;" >my text here</p>
in vb6 web browser control load these pages , highlight background colour according conditions. working text , html elements. paragraphs having text-indent -ve value not work , highlight not complete , not highlight starting .25 in of text. how can highlighted? in below picture first 1 error case(with text-indent) , second 1 without indent.
so how apply background color text if text indent specified?
you cant in way may anticipate, can reduce margin , add padding element amount relating indent value specified.
demo fiddle
<p style="margin-left: 0.25in; background-color: #656565;text-indent: -0.25in;padding:0 .25in; text-align: justify;" >my text here<br />more text here</p>
note should try use lowercase characters css, , favour using stylesheets instead of inline values.
html
<p> text here <br /> more text here </p>
css
p { margin-left: 0.25in; background: #656565; text-indent: -0.25in; padding:0 .25in; text-align: justify; }
Comments
Post a Comment