Click here to get back home

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

 HomeNewsGroups | Search | About
 comp.infosystems.www.authoring.html    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
after setting 's margin to 0 it is still non zero! (IE only) dmitry sychov 01-18-2007
Posted by dmitry sychov on January 18, 2007, 12:54 pm
Please log in for more thread options


Hello,

There should be no red lines - and Mozilla does not display them
but IE does...
<input> should 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


Posted by Harlan Messinger on January 18, 2007, 11:34 pm
Please log in for more thread options


dmitry sychov wrote:
> Hello,
>
> There should be no red lines - and Mozilla does not display them
> but IE does...
> <input> should 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
>

Similar ThreadsPosted
margin above of

August 23, 2007, 5:15 am
What good is margin-bottom in IE? November 3, 2004, 1:28 pm
Help with Firefox margin issue August 30, 2005, 5:26 pm
Netscape margin attributes June 2, 2006, 2:47 pm
strange behavior with IE and margin... June 12, 2006, 2:03 am
margin under floated divs February 14, 2008, 1:06 pm
IE6 -> searching for padding or margin, i don't find it September 29, 2004, 6:40 pm
create margin notes on webpages March 6, 2006, 9:03 pm
Default top and bottom margin disappear in IE7: why November 9, 2007, 11:44 pm
Div left margin getting double size on IE6. Why? May 12, 2008, 1:10 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap