By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,739 Members | 1,060 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,739 IT Pros & Developers. It's quick & easy.

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

P: n/a
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="background:#FF0000; padding:0px; margin:0px;
border-width:0px;width:100px">
<input style="border-width:0px; background:#AAAAFF; width:100%;
padding:0px; margin:0px" size="20">
</div>

<br><br>
Thank you, Dmitry

Jan 18 '07 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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="background:#FF0000; padding:0px; margin:0px;
border-width:0px;width:100px">
<input style="border-width:0px; background:#AAAAFF; 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
Jan 19 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.