{"id":133,"date":"2006-01-21T18:25:38","date_gmt":"2006-01-21T23:25:38","guid":{"rendered":"http:\/\/www.glendathegood.com\/blog\/?p=133"},"modified":"2006-01-21T18:42:16","modified_gmt":"2006-01-21T23:42:16","slug":"shoofly-there-is-a-bug-in-my-pie","status":"publish","type":"post","link":"http:\/\/www.glendathegood.com\/blog\/shoofly-there-is-a-bug-in-my-pie\/","title":{"rendered":"Shoo Fly &#8211; There is a bug in my PIE"},"content":{"rendered":"<div class=\"imgdeco\"><img src=\"\/images\/flypie.jpg\" alt=\"\" \/><\/div>\n<p>Imagine my surprise, when I pointed my PDA browser  (Pocket Internet Explorer aka PIE, Mozilla\/4.0 (compatible; MSIE 4.01; Windows CE; PPC; 240&#215;320)) to <a href=\"http:\/\/www.cnet.com\/\">www.cnet.com<\/a> and my browser crashed!  Ouch.  There seems to be a bug in my PIE! <\/p>\n<p>I couldn&#8217;t resist lifting up the hood to see if I could identify the culprit.  Surprise, surprise, it is what I call the &#8220;the siamese twin float listing whammy&#8221;.  Poor little PIE, can <strong>not<\/strong> handle two elements in a row that are both styled with a float and width followed immediately by an ordered or unordered list.  Here is a simple example so you too can experience the pain.<\/p>\n<div class=\"code\">\n&lt;head><br \/>\n&lt;style type=&#8221;text\/css&#8221;><br \/>\n&lt;!&#8211;<br \/>\n#thing1 {<br \/>\n<strong>float: right;<\/strong><br \/>\n<strong>width: 10px;<\/strong><br \/>\n}<br \/>\n#thing2 {<br \/>\n<strong>float:right;<\/strong><br \/>\n<strong>width: 10px;<\/strong><br \/>\n}<br \/>\n&#8211;><br \/>\n&lt;\/style><br \/>\n&lt;\/head><br \/>\n&lt;body><br \/>\n&lt;div id=thing1><br \/>\n&lt;img src=&#8221;..\/images\/thing1.jpg&#8221; alt=&#8221;Thing 1&#8243; \/><br \/>\n&lt;\/div><br \/>\n&lt;div id=thing2><br \/>\n&lt;ol><br \/>\n&lt;li>Float&lt;\/li><br \/>\n&lt;li>Float&lt;\/li><br \/>\n&lt;li>List&lt;\/li><br \/>\n&lt;li>#$%^!&lt;\/li><br \/>\n&lt;ol><br \/>\n&lt;\/div><br \/>\n&lt;\/body>\n<\/div>\n<p>I also posted a <a href=\"http:\/\/glendathegood.com\/examples\/twinfloat.html\">sample page that will crash pie.<\/a><\/p>\n<p>Solutions?  Well, other than avoiding the float\/width, float\/width, list combo, if you will insert anything in your code (another tag, text, a non-breaking space) any where between the floated elements and\/or the list you will solve this problem.<\/p>\n<p>So don&#8217;t get caught by the vicious &#8220;siamese twin float listing whammy&#8221; there are a lot of us out here browsing with PIE!<\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"imgdeco\"><img src=\"\/images\/flypie.jpg\" alt=\"\" \/><\/div>\n<p>Imagine my surprise, when I pointed my PDA browser  (Pocket Internet Explorer aka PIE, Mozilla\/4.0 (compatible; MSIE 4.01; Windows CE; PPC; 240&#215;320)) to <a href=\"http:\/\/www.cnet.com\/\">www.cnet.com<\/a> and my browser crashed!  Ouch.  There seems to be a bug in my PIE! <\/p>\n<p>I couldn&#8217;t resist lifting up the hood to see if I could identify the culprit.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[11,8],"tags":[],"_links":{"self":[{"href":"http:\/\/www.glendathegood.com\/blog\/wp-json\/wp\/v2\/posts\/133"}],"collection":[{"href":"http:\/\/www.glendathegood.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.glendathegood.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.glendathegood.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.glendathegood.com\/blog\/wp-json\/wp\/v2\/comments?post=133"}],"version-history":[{"count":0,"href":"http:\/\/www.glendathegood.com\/blog\/wp-json\/wp\/v2\/posts\/133\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.glendathegood.com\/blog\/wp-json\/wp\/v2\/media?parent=133"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.glendathegood.com\/blog\/wp-json\/wp\/v2\/categories?post=133"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.glendathegood.com\/blog\/wp-json\/wp\/v2\/tags?post=133"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}