SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Wizard billy_111's Avatar
    Join Date
    Jul 2009
    Posts
    1,683
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Formatting error in IE8

    Hi,

    I don't know why i am getting a formatting error on this page:-

    http://kidsunlimi2.eweb102.discounta...d-nursery.aspx

    You will get a google popup just click OK on this as the site is not live yet..

    I get 2 blue boxes when there should only be one. If you look in firefox it looks perfect.

    Any ideas how i can fix this?

    I need to set this site live asap..

    Thanks again
    Software Engineer ASP, ASP.NET, VB, PHP

    Kind regards
    Billy

  2. #2
    The CSS Clinic is open silver trophybronze trophy
    Paul O'B's Avatar
    Join Date
    Jan 2003
    Location
    Hampshire UK
    Posts
    40,386
    Mentioned
    180 Post(s)
    Tagged
    6 Thread(s)
    Hi,

    I copied the code for that section to a page of its own and it was working fine in IE8.

    I'm guessing that the problem is due to one of the 81 errors on the page. There are either missing, badly nested or unmatched closing tags that are upsetting things.

    I would go through that page bit by bit and match all the tags up until you get a valid structure. If the page is still broken after that then I'll take another look

    As I said if just copy the code for that little section then it works fine so it must be the structure isn't correct elsewhere.

  3. #3
    The CSS Clinic is open silver trophybronze trophy
    Paul O'B's Avatar
    Join Date
    Jan 2003
    Location
    Hampshire UK
    Posts
    40,386
    Mentioned
    180 Post(s)
    Tagged
    6 Thread(s)
    ok - I've dones some more testing and it seems the problem is caused by the invalidly nested form here:

    Code:
            <div id="postcode-right">
            <form>
                <ul>
                    <li>Enter your Postcode or Town/City</li>
                    <li>
                        <input type="text" ID="TextBox1" style="width:220px; border:1px solid black;" />
                    </li>
                    <li>
                        <input type="button" ID="butt" class="postcode-submit" onclick="return butt_onclick()"/>
                    </li>
                </ul>
            </form>
        </div>
    </div>
    If you remove those form tags then it should work in IE8. You already have a form element around the whole page so you can't nest more form elements.

  4. #4
    SitePoint Wizard billy_111's Avatar
    Join Date
    Jul 2009
    Posts
    1,683
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you soo much!

    Really appreciate your help Paul.

    Thanks again
    Software Engineer ASP, ASP.NET, VB, PHP

    Kind regards
    Billy


Bookmarks

Posting Permissions

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