K
KiwiBrian
I wish to control the text line-height, and the paragraph vertical spacing,
of several rows of text on a page irrespective of any styles in an external
stylesheet that is applied to the page.
In the following example I have set the margin top and bottom of each
paragraph to 1px to demonstrate that it doesn't seem to be in control.
I had thought that this could be accomplished as follows:-
<div style="FONT-SIZE: 14px; LINE-HEIGHT: 16px; FONT-FAMILY: arial;
TEXT-ALIGN: left">
<p style="MARGIN: 1px 0px">Several lines of text e.g. I wish to control the
text line-height, and the paragraph vertical spacing, of several rows of
text on a page irrespective of any styles in an external stylesheet that is
applied to the page.</p>
<p style="MARGIN: 1px 0px">More lines of text e.g. I wish to control the
text line-height, and the paragraph vertical spacing, of several rows of
text on a page irrespective of any styles in an external stylesheet that is
applied to the page.</p></div>
Why does the vertical margin not seem to be in control of the vertical
spacing between consecutive paragraphs but is aparantly overrridden by an
external style?
How can I ensure that my inline style is the controlling style on the
enclosed text?
of several rows of text on a page irrespective of any styles in an external
stylesheet that is applied to the page.
In the following example I have set the margin top and bottom of each
paragraph to 1px to demonstrate that it doesn't seem to be in control.
I had thought that this could be accomplished as follows:-
<div style="FONT-SIZE: 14px; LINE-HEIGHT: 16px; FONT-FAMILY: arial;
TEXT-ALIGN: left">
<p style="MARGIN: 1px 0px">Several lines of text e.g. I wish to control the
text line-height, and the paragraph vertical spacing, of several rows of
text on a page irrespective of any styles in an external stylesheet that is
applied to the page.</p>
<p style="MARGIN: 1px 0px">More lines of text e.g. I wish to control the
text line-height, and the paragraph vertical spacing, of several rows of
text on a page irrespective of any styles in an external stylesheet that is
applied to the page.</p></div>
Why does the vertical margin not seem to be in control of the vertical
spacing between consecutive paragraphs but is aparantly overrridden by an
external style?
How can I ensure that my inline style is the controlling style on the
enclosed text?