473,795 Members | 2,746 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

Jan 18 '07 #1
1 1577
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
Jan 19 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
11163
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 modify header information - headers already sent by ... The abbreviated code on the login page looks like this: <?php session_start(); ?>
1
1775
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: For a Field or Property object, this property is read/write until the object is appended to a collection or to another object, after which it's
3
2374
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 not a member of 'System::Resources::ResourceManager' ....Does anyone know why this happens, and the way to correct it....I looked up the function member "GetObject", and it is a valid member function. Note
4
1719
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 in the Cell (2 tables and button). I wanted to set it in just one place. "<td style=margin-left:10>" doesn't do anything. Is there a way to do this? Thanks,
7
1949
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 Explorer and Opera it works fine; 'Entry 3' shows up. Is this a bug within Mozilla Firefox or do I have any possibility to change this wrong behavior? Stefan ========================
1
1028
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 behavoir is correct, however in the scenario I'm working on, I would like it to postback. How do I force it to postback? Thanks, Charlie
3
2257
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. vs2003/.net 1.1 HttpCookie httpCookie = new HttpCookie("myCookieName"); httpCookie.Value = (string)Session; // BUG: adding the cookie kills the session.
1
1964
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 Well it is something like this richtextbox.rtf = 'databasevalue' but after this statement I notice that the richtextbox.rtf value is not equal to 'databasevalue' Here is my rtf value (from the database)
1
2357
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 "Console.TreatControlCAsInput = true". How can i make it work like it would be set to "false", so that i only must hit the return once to get the input,... TIA
1
10163
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9040
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7538
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6780
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5436
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5563
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4113
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3722
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2920
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.