I was trying to integrate niceforms to my smf based blog, and almost entirely succeeded. So here is the only problem that I face:
When the 'niceforms' is put into action, it works fine but the position of the input boxes are not rendering as intended see this page for example. It shows how the input is rendered with niceform functioning. Here's a page that shows the correct rendering with javascript disabled.
I fixed the problem for firefox by slightly changing the css as shown:
Before:
After:Code:/*Text inputs*/ .NFText {border:none; vertical-align:middle; font:12px/15px Arial, Helvetica, sans-serif; background:none;} .NFTextCenter {height:15px; background:url(img/input.png) repeat-x 0 0; padding:3px 0; margin:0; float:left; line-height:15px;} .NFTextLeft, .NFTextRight {width:7px; height:21px; vertical-align:middle; float:left;} .NFTextLeft {background:url(img/input-left.png) no-repeat 0 0;} .NFTextRight {background:url(img/input-right.png) no-repeat 0 0;}
Here's that page (with fix for ff).Code:/*Text inputs*/ .NFText {border:none; vertical-align:middle; font:12px/15px Arial, Helvetica, sans-serif; background:none;} .NFTextCenter {height:15px; background:url(img/input.png) repeat-x 0 0; padding:3px 0; margin:0;display:inline-block; line-height:15px;} .NFTextLeft, .NFTextRight {width:7px; height:21px; vertical-align:middle;} .NFTextLeft {background:url(img/input-left.png) no-repeat 0 0;} .NFTextRight {background:url(img/input-right.png) no-repeat 0 0;}
But this fix wont work in browsers like chrome and IE, can somebody help with this?


LinkBack URL
About LinkBacks
Reply With Quote

