after setting <edit>'s margin to 0 it is still non zero! (IE only)

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • dmitry sychov

    after setting <edit>'s margin to 0 it is still non zero! (IE only)

    Hello,

    There should be no red lines - and Mozilla does not display them
    but IE does...
    <inputshould take the whole space of its parent element
    (<div>)

    Any workaround?

    <br><br><br><br >

    <div style="backgrou nd:#FF0000; padding:0px; margin:0px;
    border-width:0px;width :100px">
    <input style="border-width:0px; background:#AAA AFF; width:100%;
    padding:0px; margin:0px" size="20">
    </div>

    <br><br>


    Thank you, Dmitry

  • Harlan Messinger

    #2
    Re: after setting &lt;edit&gt; 's margin to 0 it is still non zero! (IEonly)

    dmitry sychov wrote:
    Hello,
    >
    There should be no red lines - and Mozilla does not display them
    but IE does...
    <inputshould take the whole space of its parent element
    (<div>)
    >
    Any workaround?
    >
    <br><br><br><br >
    >
    <div style="backgrou nd:#FF0000; padding:0px; margin:0px;
    border-width:0px;width :100px">
    <input style="border-width:0px; background:#AAA AFF; width:100%;
    padding:0px; margin:0px" size="20">
    Width is 100% but size is 20? You're contradicting yourself.

    On a separate note, if you're going to use CSS, use CSS. Get rid of the
    BRs and set margins.
    </div>
    >
    <br><br>
    >
    >
    Thank you, Dmitry
    >

    Comment

    Working...