Here's my delimma:
I'm generating HTML. I don't have access to the <head>. In the <head> is a
stylesheet that defines a style for <p>. I have HTML I am wrapping around
other generated HTML (that I don't have access to) that emits a <p> tag, and
its getting (obviously) the style from the stylesheet. So I'd like to be
able to override the style via some surrounding elements.
Example
<html>
<head><style type="text/css">p { bottom-margin: 20px; }</style></head>
<body>
<!-- POINT A: begin what i have control over -->
<div style="position:absolute; top:0px; right:0px;">
<!--begin more stuff i don't have control over -->
<p>TheOtherGeneratedStuff</p>
<!-- back to me again-->
</div>
...
So somewhere at POINT A, I'd like to insert something that affects the style
of the embedded <p> tag that I don't have control over. Could I just insert
some java script to save and restore the <p> style ? Other options?
Thanks,
Mike
If you know what the markup is and simply don't have access to change it, I
suppose you could look for some exact pattern and match it... for example,
if it's a <p> within a <table> within a <form>, you could insert "form table
p { ...your code here ... }". Would that work, perhaps?
I'm really new to CSS myself, just thought I'd take a crack at this.
-- Eric
"Mike Jansen" <mjanse...@mail.com> wrote in message
news:OdfSlQIv...@TK2MSFTNGP03.phx.gbl...