473,396 Members | 1,998 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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="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
1 1567
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: deko | last post by:
I have a login page that is supposed to redirect the user to his private page after login. But header("Location: $url") does not work after I set the $_SESSION variable - I get "Warning: Cannot...
1
by: windandwaves | last post by:
Hi Folk I am working with the TYPE property. I want to change that from 2 (byte) to 4 (long integer) for a field that already contains tons of data. How can I do that? The help reads: ...
3
by: TGF | last post by:
Hello, When I attempt to set the icon property on a Windows form (.NET), when I go to compile, I get the following error.... e:\Projects\MyApp\AboutForm.h(108): error C2039: 'GetObjectA' : is...
4
by: tshad | last post by:
I have one cell (<td>) that I want to have a margin in to move everything away from the left border by about 10 px. The only way I can seem to do it is to add cellspacing in each of the elements...
7
by: Stefan Mueller | last post by:
I choose 'Entry 4' and click then on the button 'Set' to set the index to 'Entry 2'. If you press now the cursor down key 'Entry 5' instead of 'Entry 3' shows up with Mozilla Firefox. With Internet...
1
by: Charlie | last post by:
Hi: I noticed that after setting SelectedValue of a dropdownlist to have an item selected in list, if you reselect the same item later, it will not postback. In most cases I can see that this...
3
by: Paul | last post by:
I'm having a problem with the session being reset after setting a cookie. This is not supposed to happen. If I comment out the Add line below the site works normally, the session persists. Help. ...
1
by: DavidAM | last post by:
In an application I'm loading a RTF value from a database into a richtextbox. After setting the RTF property of the richtextbox control I notice that this value is different than the database value...
1
by: Kerem Gümrükcü | last post by:
Hi All, i am too tired now to find this out by my own, but why does my while loop "while(readline==Console.ReadLine())" needs twice return hit to read the line, after setting...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.