Chris Stratford wrote:


I dont know, but is there a way to hide all styles from a <div>

what I have is - an admin page, where the owner can enter text into a <TEXTAREA>
And click PREVIEW
and it will load it into a DIV below the TEXTAREA.


I dont want any of the styles to "cascade" down into this area...

Is there anyway to stop that from happening?

I think i explined it very "crappily" and i hope you understand what I am after...
***************************************************** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list & getting help *****************************************************

if you're talking about inheritence, then follow the laws of the cascade.

<form id="bigBrother">
<textarea id="entertext">Default text</textarea>
<input type="submit" value="preview" />
<div id="littleBrother"></div>
</form>

form#bigBrother {color:red; border:2px dotted #000;}
#bigBrother div#littleBrother {color:blue; border:0;}

specifics take precedence over the cascade. You'll just need to annul/alter what's already there.

--
Ryan Christie        | e: [EMAIL PROTECTED]
Harrisonburg, VA     | w: http://shadyland.theward.net
-------------------() ()------------------------------

*****************************************************
The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
*****************************************************




Reply via email to