inside an Access db I've a lot of records with html text (like <p
style="color:red">, <font color="green">, ...) but I'd like to ignore the
style given to each text and use my css to show these texts.
You're either going to have to strip out the inline styles as someone else
has already suggested, or do one of the following:
Either make sure the tags in question have either ID or class selectors and
then flag them as !Important or, simply create a new style for the <p>
element..
<p style="color:red">
<p class="mycolor" style="color:red">
<p id="acolor" style="color:red">
<style>
.mycolor{ /* class selector */
color: blue !Important;
}
#acolor{ /* ID selector */
color: blue !Important;
}
p{ /* element would be easiest */
color: blue !Important;
}
</style>
Any one of which should turn the paragraph text blue - even if it has
an inline style that specifies a red font.
Inline styles have a specificity of 1000 which basically means that it
will always take precedence with one exception. You guessed it - it's
all about being !Important
John