Cutline Theme Support Forums » General

CSS errors, how cn I fix this:

(4 posts)

  1. I use the Cutline Theme and get the following error in W3C:

    191 .page_entry img, .entry img Ongeldig getal : width Lexical error at line 191, column 106. Encountered: "?" (63), after : "" ? 490: true);

    191 .page_entry img, .entry img Ongeldig getal : width Parse error - Unrecognized }

    How can or should I fix this problem to become W3C compliant?

    Posted 3 years ago #
  2. jan
    Member

    You can comment ( /* xxx */ ) or simply delete this part of code in style.css:
    height: auto; width: expression(this.width > 490 ? 490: true);

    (...and for images larger than 490px in width, you can add width="490" to tag img - necessary for MSIE6 only)

    Posted 3 years ago #
  3. thnx jan, so your saying I can remove the line? but what will I loose then? large images support for IE6? What are the downsides of removing this line? On my work everybody uses IE6..

    Posted 3 years ago #
  4. jan
    Member

    michiel26,
    if the validity of CSS is really important to you, removing this part of code is only right way. After this, if you insert an image larger than 490 px (in width) into post, in MSIE6 it will be cropped from right instead of resized (downsampled). Reason is simple - MSIE6 doesn`t recognize declaration max-width: 490px; like modern browsers (MSIE7, FF, Opera) do...
    I.e., in MSIE6 will be visible left part of unresized image only - see this screenshots comparsion

      Possible solution(s):

    • you can switch from Visual to HTML editor and add width="490" to img-tag
    • you can do it on "Insert/edit image" palette (card "Appearance")
    • you can use some gallery-plugin (e.g. NextGEN Gallery) for images (but i`am not sure, if NextGEN have standard-compliant CSS, most likely not...)
    • you can prepare your web-images with exact dimensions in your photo-editor, in this case you have full control over image quality (unlike automatic resizing in browser)

    ...etc...etc...
    -------------------------------------------------------------------
    (EN isn`t my mother tongue... but the message is clear, I hope... :-))

    Posted 3 years ago #

RSS feed for this topic

Reply

You must log in to post.