Skip to main content
Inspiring
Nov 23, 2017 9:55 PM UTC
Question

CS4 - An unexpected error occurred while trying to read style-sheet information

Lately in DW4 my CSS file has intermittently been giving me the following error when I try save or open .classes from the CSS Styles panel:

"An unexpected error occurred while trying to read style-sheet information."

Here's the CSS file.

Thanks.

    This topic is closed to new replies. Start a new post to keep the conversation going.

    14 replies

    BenPleysier
    Community Expert
    Community Expert
    Nov 23, 2017 10:27 PM UTC

    A warning: Duplicate property text-align in

    .disclaimer {

         text-align:left;

         font-size:11px;

         text-align:center;

         color: #343735;

    }

    An error: Color has an invalid value

    .quotationattr {

         font-family: Verdana, Geneva, sans-serif;

         font-size: 14px;

         font-style: normal;

         font-weight: normal;

         color: #0;

         border-bottom: 2px solid #ddd;

         margin-top: 0px;

         margin-right: 40px;

         margin-bottom: 30px;

         margin-left: 40px;

         padding-top: 0px;

         padding-right: 40px;

         padding-bottom: 24px;

         padding-left: 40px;

    }

    Translate
    Wappler is the DMXzone-made Dreamweaver replacement and includes the best of their powerful extensions, as well as much more!
    JayNewWebAuthor
    Inspiring
    Nov 23, 2017 11:07 PM UTC

    I made the changes you pointed out, but it's still "intermittently" not working.

    Here's the new file.

    Thanks.

    Translate
    Nancy OShea
    Community Expert
    Community Expert
    Nov 23, 2017 11:29 PM UTC

    Can we safely assume that all background-images expressed in your CSS are in the same folder as your CSS file?

    I ask because I prefer to organize my site's assets in separate folders for images, css and scripts.  See screenshot.

    Having said that, my path to background-images would be different than yours because my CSS is in one folder and images are in another.

    ../images/filename.png

    Translate
    Nancy O'Shea— Product User & Community Expert