Posted under JSF
Permalink
Tags Bug, CSS, Gotcha, HTML, ICEfaces
The ice:form tag renders a stateSavingMarker div which declares a couple of hidden fields for use by ICEfaces.
In IE7, (or IE8 in IE& compatibility mode), this div has its margin to 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 by adding a style to the form, either by adding a StyleClass attribute to refer to a CSS class, or by using the Style attribute to code an inline style. As this is a ‘one off’ just to clear a margin, the following example uses an inline style :-
<ice:form style=”margin:0″>
Leave a Reply
You must be logged in to post a comment.