bigcheez Posted April 23, 2010 Share Posted April 23, 2010 Looking at the javascript documentation, one is able to access external stylesheets and inline styles.Is it possible to insert a rule into the internal stylesheet? Link to comment Share on other sites More sharing options...
jeffman Posted April 23, 2010 Share Posted April 23, 2010 Yes, but it's a hassle, because there are significant differences between the standard and Microsoft's technique. Whenever I've thought I needed to do this, there always turned out to be an easier way.If you explain your goal, someone might suggest a different plan. Link to comment Share on other sites More sharing options...
bigcheez Posted April 23, 2010 Author Share Posted April 23, 2010 Yes, but it's a hassle, because there are significant differences between the standard and Microsoft's technique. Whenever I've thought I needed to do this, there always turned out to be an easier way.Can you provide an reference to point me in the right direction?If you explain your goal, someone might suggest a different plan.I am looking to dynamically position a div that is created via a third-party script.Because the div is not available when the page loads I cannot change an inline style for an element that is not yet created.Also I cannot rely on external stylesheets because I cannot predict if one will be available. Link to comment Share on other sites More sharing options...
jeffman Posted April 23, 2010 Share Posted April 23, 2010 http://msdn.microsoft.com/en-us/library/ms...28VS.85%29.aspxhttps://developer.mozilla.org/En/DOM/Stylesheet Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.