{"id":722,"date":"2010-01-08T17:35:50","date_gmt":"2010-01-08T17:35:50","guid":{"rendered":"http:\/\/salientsoft.co.uk\/?p=722"},"modified":"2011-11-17T13:41:32","modified_gmt":"2011-11-17T13:41:32","slug":"icefaces-iceform-tag-adds-extra-auto-margin-in-ie7","status":"publish","type":"post","link":"https:\/\/salientsoft.co.uk\/?p=722","title":{"rendered":"ICEfaces ice:form tag adds extra auto margin in IE7"},"content":{"rendered":"<p>The <strong>ice:form<\/strong> tag\u00a0renders a <strong>stateSavingMarker<\/strong> div which declares a couple of hidden fields for use by ICEfaces.<\/p>\n<p>In IE7, (or IE8 in IE&amp; compatibility mode), this div\u00a0has\u00a0its margin\u00a0to<strong> auto <\/strong>which can cause an extra 10px or so margin to be added in between any elements outside the form and those inside.<\/p>\n<p>This can be eliminated by\u00a0adding a style to the form, either by adding a <strong>StyleClass<\/strong> attribute to refer to a CSS class, or by using the <strong>Style<\/strong> attribute to code an inline style. As this is a &#8216;one off&#8217; just to clear a margin, the following example uses an inline style :-<\/p>\n<p>&lt;ice:form style=&#8221;margin:0&#8243;&gt;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The ice:form tag\u00a0renders a stateSavingMarker div which declares a couple of hidden fields for use by ICEfaces. In IE7, (or IE8 in IE&amp; compatibility mode), this div\u00a0has\u00a0its margin\u00a0to auto which can cause an extra 10px or so margin to be added in between any elements outside the form and those inside. This can be eliminated [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[22],"tags":[13,189,40,78,23],"_links":{"self":[{"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/722"}],"collection":[{"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=722"}],"version-history":[{"count":7,"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/722\/revisions"}],"predecessor-version":[{"id":724,"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/722\/revisions\/724"}],"wp:attachment":[{"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=722"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=722"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=722"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}