2 Replies Latest reply on Aug 10, 2006 4:04 AM by TheFolx

    CSS causing DW8 to Crash

    TheFolx
      The following CSS file is causing DW8 to crash on load up. There's no extra spaces, etc. at the bottom - this is the exact file that's in my sites directory. When I rmeove this file, DW8 loads and operates fine. Any ideas why DW doesn't like this file?

      @media screen
      {
      body
      {
      margin: 0;
      padding: 14.7em 0 0 0;
      color: #000;
      background: #fff;
      font-size: 1em;
      height: 100%;
      width: 100%;
      overflow: hidden;
      font-size: 100%;

      }
      div#header
      {
      width: 100%;
      height: 40;
      position: absolute;
      top: 0;
      left: 0;
      color: #000;
      }
      div#content
      {
      padding: 1em;
      }
      div#content
      {
      width: 100%;
      height: 100%;
      overflow: auto;
      }
      body>div#header
      {
      position: fixed;
      margin-top: -6em;
      padding-top: 6em;
      }
      ol>li#dog3
      }


      @media print
      {
      body
      {
      margin: 0;
      padding: 0 0 0 0;
      color: #000;
      background: #fff;
      font-size: 1em;
      height: 100%;
      width: 100%;
      overflow: hidden;
      font-size: 100%;
      }
      }
        • 1. Re: CSS causing DW8 to Crash
          Level 7
          I can only guess it doesn't like the @media declarations. What happens if
          you separate them, e.g.,

          <style type="text/css" media="screen">
          ...
          </style>
          <style type="text/css" media="print">
          ...
          </style>

          ??

          --
          Murray --- ICQ 71997575
          Adobe Community Expert
          (If you *MUST* email me, don't LAUGH when you do so!)
          ==================
          http://www.dreamweavermx-templates.com - Template Triage!
          http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
          http://www.dwfaq.com - DW FAQs, Tutorials & Resources
          http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
          ==================


          "TheFolx" <webforumsuser@macromedia.com> wrote in message
          news:ebdm8p$j5b$1@forums.macromedia.com...
          > The following CSS file is causing DW8 to crash on load up. There's no
          > extra
          > spaces, etc. at the bottom - this is the exact file that's in my sites
          > directory. When I rmeove this file, DW8 loads and operates fine. Any ideas
          > why
          > DW doesn't like this file?
          >
          > @media screen
          > {
          > body
          > {
          > margin: 0;
          > padding: 14.7em 0 0 0;
          > color: #000;
          > background: #fff;
          > font-size: 1em;
          > height: 100%;
          > width: 100%;
          > overflow: hidden;
          > font-size: 100%;
          >
          > }
          > div#header
          > {
          > width: 100%;
          > height: 40;
          > position: absolute;
          > top: 0;
          > left: 0;
          > color: #000;
          > }
          > div#content
          > {
          > padding: 1em;
          > }
          > div#content
          > {
          > width: 100%;
          > height: 100%;
          > overflow: auto;
          > }
          > body>div#header
          > {
          > position: fixed;
          > margin-top: -6em;
          > padding-top: 6em;
          > }
          > ol>li#dog3
          > }
          >
          >
          > @media print
          > {
          > body
          > {
          > margin: 0;
          > padding: 0 0 0 0;
          > color: #000;
          > background: #fff;
          > font-size: 1em;
          > height: 100%;
          > width: 100%;
          > overflow: hidden;
          > font-size: 100%;
          > }
          > }
          >


          • 2. Re: CSS causing DW8 to Crash
            TheFolx Level 1
            That works until the files is checked, then it crashes DW8.