Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length

JoomlaTune Support Forum    JComments component    Bug-reports    Topic: form layout bug in IE
Pages: [1]   Go Down
  Print  
Author Topic: form layout bug in IE  (Read 2989 times)
0 Members and 1 Guest are viewing this topic.
nk111
Newbie
*

Karma: 0
Offline Offline

Posts: 3


« on: April 20, 2010, 15:40:55 »

I don't know if this has been addressed here already. If so, please ignore.

I noticed that all the input elements of the comments form are incorrectly pushed 20px to the right in Internet Explorer. See attached image.

The reason is a rendering bug in IE as explained here:

http://www.positioniseverything.net/explorer/inherited_margin.html

There are some solutions for this but the most simple I think is:

put an additional <span> tag around the input and textarea tags in tpl_form.php!

like this:

Code:
<p>
    <span>
        <input id="comments-form-name" type="text" name="name" value="" maxlength="<?php echo $this->getVar('comment-name-maxlength');?>" size="22" tabindex="1" />
        <label for="comments-form-name"><?php echo JText::_('FORM_NAME'); ?></label>
    </span>
</p>

This solved the problem for me.

I hope this helps.


* jcomments.png (26.01 KB, 627x550 - viewed 371 times.)
Logged
Pages: [1]   Go Up
  Print  
JoomlaTune Support Forum    JComments component    Bug-reports    Topic: form layout bug in IE
 
Jump to: