src091
src091

Reputation: 2847

Strange input field indent in Safari

This code:

<table cellpadding=0 cellspacing=0 border=0>
    <tr>
        <td bgcolor=red>
            <input type='text' />
        </td>
    </tr>
</table>

Gives this output in Safari and all other browsers: alt text

The question is how to remove the indent that is highlighted with background color. Problem occurs in Safari only, CSS margin/padding/border does not help.

Upvotes: 1

Views: 674

Answers (1)

Gumbo
Gumbo

Reputation: 655707

There’s probably some margin on that input element. Try to remove it, e.g.:

<input type='text' style="margin:0" />

Upvotes: 1

Related Questions