Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New Coder
    Join Date
    Aug 2006
    Posts
    19
    Thanks
    1
    Thanked 0 Times in 0 Posts

    layout broken in IE8 - code on the fly wrong

    Hi - we're getting desperate here! We have a page that works fine in EVERYTHING except IE8 - that page is http://www.haywardsdrycleaners.com/services/ - as you can see the layout is screwed.

    I have looked at the html and can see that there are nesting errors in the code for each of the images. This code is produced on the fly somewhere, but I can't find it! If I cut and paste the whole code, create a html file, correct the errors and upload the new page it works fine in IE8.

    Please could someone help us find where the code is generated.

    Many thanks

    Edward

  • #2
    Supreme Master coder! Old Pedant's Avatar
    Join Date
    Feb 2009
    Posts
    25,189
    Thanks
    75
    Thanked 4,341 Times in 4,307 Posts
    Well, it appears that the site is a WORDPRESS site (created via PHP code).

    So you will have to find the PHP code for the page in question and correct it.

    If it's a fundamental WordPress flaw, you might try posting in the WordPress forums.

    In any case, I don't think this has anything at all to do with JavaScript, which is of course the topic of this forum.
    An optimist sees the glass as half full.
    A pessimist sees the glass as half empty.
    A realist drinks it no matter how much there is.

  • #3
    New Coder
    Join Date
    Aug 2006
    Posts
    19
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Yes, you're correct its a wordpress site. There is no "template" or post for this page, and it is generated by a shortcode (which I think does pull in some js)

    However, we have solved it now - the editor was adding extra code so [raw]...[raw] solved it

    Thanks for your answer

  • #4
    Supreme Master coder! Old Pedant's Avatar
    Join Date
    Feb 2009
    Posts
    25,189
    Thanks
    75
    Thanked 4,341 Times in 4,307 Posts
    Yes, the shortcode pulls in JS, but that would have nothing to do with the basic HTML layout being wrong.

    Good catch on using [raw]. It does make sense it was the editor doing it, though I sure didn't think of that at the time.
    An optimist sees the glass as half full.
    A pessimist sees the glass as half empty.
    A realist drinks it no matter how much there is.


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •