• Visitors can check out the Forum FAQ by clicking this link. You have to register before you can post: click the REGISTER link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. View our Forum Privacy Policy.
  • Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!

Reply to: My day...

Collapse

You are not logged in or you do not have permission to access this page. This could be due to one of several reasons:

  • You are not logged in. If you are already registered, fill in the form below to log in, or follow the "Sign Up" link to register a new account.
  • You may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?
  • If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation.

Previously on "My day..."

Collapse

  • mudskipper
    replied
    Thanks Nick - that looks really useful. I love the ff developer toolbar - didn't know IE had such a thing! Help much appreciated.

    Leave a comment:


  • NickFitz
    replied
    Originally posted by k2p2 View Post
    Indeed. I did tell 'em up front I don't do design stuff. No worries, they said, they'll supply the designs. I was confidently expecting HTML but got a PDF. Ah well, they seem happy enough with my botch job. Mind you, they haven't looked at it in IE6 yet...!
    zoom: 1; is your friend

    Install the IE Developer Toolbar. Using its DOM/CSS views, identify containing elements that are leaking their contents (or possibly throwing them to the four corners of the screen) and see if, in the CSS column, they show a property called hasLayout with the value -1. If they don't then, using the attributes inspector, set zoom to 1 and they'll almost certainly start behaving again.

    Once you've identified all the elements that need it, just add that zoom into the appropriate CSS declarations: it won't affect anything else, although if you want you can go to town and put it in an IE-only stylesheet included via conditional comments.

    Oh, if you have anything floated that has left or right margins, also set display to inline:

    Code:
    #foo {
        float: left;
        margin: 3px 6px;
        display: inline;
    }
    as that fixes the doubled-margins bug.

    Leave a comment:


  • d000hg
    replied
    In that case, consider my sarcasm retracted

    Leave a comment:


  • mudskipper
    replied
    Originally posted by d000hg View Post
    And they're paying you how many £100s a day as an experienced expert? .
    Indeed. I did tell 'em up front I don't do design stuff. No worries, they said, they'll supply the designs. I was confidently expecting HTML but got a PDF. Ah well, they seem happy enough with my botch job. Mind you, they haven't looked at it in IE6 yet...!

    Leave a comment:


  • wingnut
    replied
    Originally posted by EternalOptimist View Post
    top man
    thanks.

    doesn't help out matey boy admittedly but I can't really help.

    Perhaps a curry on top of all those beers would help?

    Leave a comment:


  • EternalOptimist
    replied
    Originally posted by wingnut View Post
    could be worse. Imagine trying to repair a server that was allegedly backed up and has multiple disk failures, for a friends company, in the full knowledge that if you fail they are stuffed.
    With them politely loitering, trying to refrain from only ask questions every five minutes to every 10.



    Got it sorted though
    top man

    Leave a comment:


  • d000hg
    replied
    Originally posted by k2p2 View Post
    I can't do this css layout bollx. Give me a <table> any day.
    And they're paying you how many £100s a day as an experienced expert? .

    Leave a comment:


  • wingnut
    replied
    Originally posted by norrahe View Post
    Go and have a beer. Relax and don't think about it till tomorrow.
    could be worse. Imagine trying to repair a server that was allegedly backed up and has multiple disk failures, for a friends company, in the full knowledge that if you fail they are stuffed.
    With them politely loitering, trying to refrain from only ask questions every five minutes to every 10.



    Got it sorted though

    Leave a comment:


  • norrahe
    replied
    Originally posted by k2p2 View Post
    Thanks. I feel so much better for knowing that!
    Go and have a beer. Relax and don't think about it till tomorrow.

    Leave a comment:


  • mudskipper
    replied
    Originally posted by NickFitz View Post
    You need to remember that the XML empty element shorthand syntax <foo /> can only be used in XHTML (served as text/html) for elements that are defined by the (X)HTML DTD as having an empty content model.

    As IE's parser doesn't know anything about XHTML (it's HTML-only) it sees the trailing slash within the start tag as the declaration of an attribute; as "/" isn't a valid name for an attribute, it then discards it as an ignorable syntax error, sees the ">" as the end of the start tag, and treats subsequent content as the contents of the <script> tag.

    The only reason it doesn't similarly fail for constructs like <br /> and <img /> is that they are defined in the DTD as having an empty content model, and therefore it doesn't expect to find an end tag for them.

    In fact, the <script /> construct should also fail on other browsers when the same content is served to them with Content-Type "text/html" instead of "application/xhtml+xml", for the same reasons.
    Thanks. I feel so much better for knowing that!

    Leave a comment:


  • NickFitz
    replied
    Originally posted by k2p2 View Post
    How many hours did I waste because I forgot IE doesn't like a self closing <script/> tag?
    You need to remember that the XML empty element shorthand syntax <foo /> can only be used in XHTML (served as text/html) for elements that are defined by the (X)HTML DTD as having an empty content model.

    As IE's parser doesn't know anything about XHTML (it's HTML-only) it sees the trailing slash within the start tag as the declaration of an attribute; as "/" isn't a valid name for an attribute, it then discards it as an ignorable syntax error, sees the ">" as the end of the start tag, and treats subsequent content as the contents of the <script> tag.

    The only reason it doesn't similarly fail for constructs like <br /> and <img /> is that they are defined in the DTD as having an empty content model, and therefore it doesn't expect to find an end tag for them.

    In fact, the <script /> construct should also fail on other browsers when the same content is served to them with Content-Type "text/html" instead of "application/xhtml+xml", for the same reasons.

    Leave a comment:


  • Zippy
    replied
    Tsk, tsk you heretic.

    Enjoy the beer!

    Leave a comment:


  • mudskipper
    started a topic My day...

    My day...

    Linky

    This about sums it up.

    I can't do this css layout bollx. Give me a <table> any day. How many hours did I waste because I forgot IE doesn't like a self closing <script/> tag? Add onto that the hours spent finding the hardcoded positioning in a bit of javascript...

    Thankfully I have a fridge full of beer.

Working...
X