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 2 of 2
  1. #1
    Regular Coder
    Join Date
    Jan 2011
    Posts
    302
    Thanks
    7
    Thanked 0 Times in 0 Posts

    jumbled view source code

    This page is causing me quite a problem
    http://www.countyfairgrounds.net/sub...s/database.ph5

    First we have a blue border around the banner in IE - and I have border:none; in the css code (by the way the css3 does validate)

    Second, Neither of my google ads are showing up neither the id="adcopy" nor the ad in the bottom in the footer.

    and
    THIRD and most bothersome is the fact that the code is jumbled when you view page.

    The html 5 does validate except for a few & in the page.
    SO what gives here?

  • #2
    Senior Coder
    Join Date
    Apr 2011
    Location
    London, England
    Posts
    2,120
    Thanks
    15
    Thanked 354 Times in 353 Posts
    I cannot view your page currently, but to remove the blue IE border you apply the css to the image, rather than the link:

    a img { border: none; }

    If your page is generated by PHP then, when you echo HTML, you can add line-breaks (\n) to tidy the source:

    PHP Code:
    echo "<p>Hi there</p>\n"
    "I'm here to save your life. But if I'm going to do that, I'll need total uninanonynymity." Me Myself & Irene.
    Validate your HTML and CSS


  •  

    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
    •