do like this:
<ul class="floatLi selfClearCont">
<li><fieldset>[text* your-name placeholder "You Name"]<fieldset></li>
<li>[submit class:button_submit "Submit"]</li>
</ul>
and
ul.floatLi li {float: left; margin-right: 10px;}
ul.floatLi li:last-of-type {margin-right: 0px; clear: right;}
ul.selfClearCont {
padding: 0 !important;
margin: 0 !important;
}
ul.selfClearCont li {
list-style-type: none;
padding: 0 0 10px 0 !important;
}
.selfClearCont:before,
.selfClearCont:after {
content:"";
display:table;
}
.selfClearCont:after {
clear:both;
}
.selfClearCont {
zoom:1; /* For IE 6/7 (trigger hasLayout) */
}
This should help
That does indeed put them inline, but unfortunately it floats the object to the left.
If float:left; is replaced with float:center; it makes them out of line again.
Sorry, I did not understand you wanted centered items. You can’t use float: center (it doesn’t exist). You have to do:
ul.floatLi li {display: inline-block; margin-right: 10px;}
ul.floatLi li:last-of-type {margin-right: 0px; clear: right;}
ul.selfClearCont {
text-align: center;
padding: 0 !important;
margin: 0 !important;
}
ul.selfClearCont li {
list-style-type: none;
padding: 0 0 10px 0 !important;
}
.selfClearCont:before,
.selfClearCont:after {
content:"";
display:table;
}
.selfClearCont:after {
clear:both;
}
.selfClearCont {
zoom:1; /* For IE 6/7 (trigger hasLayout) */
}
I did not test it out, but this should work.
Awesome, yep that worked! And thank you for the info on float:center. I’ve got a lot more to learn.