Results 1 to 4 of 4

Thread: FF & IE7 Text box padding

  1. #1
    Join Date
    May 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default FF & IE7 Text box padding

    Hi

    I am trying to align an image as a submit button next to a text box that contains some padding but there is always a 1px difference between IE and FF.

    What would be the correct way to get it to render correctly in both browsers?

    input {
    font-size:11px;
    color:#333333;
    }

    .search_box {
    border:#d39f7b solid 1px;
    padding-top:2px;
    }

    <form>
    <table cellpadding="0" cellspacing="0">
    <tr>
    <td><input name="search" class="search_box" type="text" size="25" /></td>
    <td><input type="image" src="images/search.gif" alt="Search" /></td>
    </tr>
    </table>
    </form>

  2. #2
    Join Date
    Jul 2006
    Location
    just north of Boston, MA
    Posts
    1,806
    Thanks
    13
    Thanked 72 Times in 72 Posts

    Default

    What would be the correct way to get it to render correctly in both browsers?
    Don't look at both browsers? haha.
    IE and Firefox render pixels differently, which is why its always to avoid explicit pixel definitions as much as possible.

  3. #3
    Join Date
    May 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Doesnt seem to like % either.

    Seriously though there must be a way to to it - apart from using an alternative stylesheet hack.

  4. #4
    Join Date
    Jul 2006
    Location
    just north of Boston, MA
    Posts
    1,806
    Thanks
    13
    Thanked 72 Times in 72 Posts

    Default

    Quote Originally Posted by asa_carter View Post
    Doesnt seem to like % either.

    Seriously though there must be a way to to it - apart from using an alternative stylesheet hack.
    only way is to use a Mod designed specifically for IE and one designed specifically for standardized browsers.

    welcome to work that is Micro$haft

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •