Locating Javascript within CSS

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Wesley King
    New Member
    • Feb 2011
    • 4

    Locating Javascript within CSS

    Hi all,

    I have code
    Code:
    <script type="text/javascript" src="http://app.feed.informer.com/digest3/MKFMTVAAYW.js">
    <noscript><a href="http://app.feed.informer.com/digest3/MKFMTVAAYW.html">Click for &quot;Yukon News&quot;.</a>
    Powered by <a href="http://feed.informer.com/">RSS Feed Informer</a></noscript></script>
    that I am trying to place within <p class="example" ></p> tags. The tags are formatted using CSS and have custom width, and positioning (courtesy of Dreamweaver).

    When I place the aforementioned coding in the the <p> tags instead of staying within the region, the text is behind the whole website and does not maintain any of the traits of the <p> tag.

    I have attached the file below.

    Anyone know a fix?
    Attached Files
    Last edited by Dormilich; Feb 17 '11, 06:36 AM.
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    move the closing </script> tag immediately behind the opening <script> tag. a <script> element is not allowed to contain other HTML elements.

    Comment

    Working...