Bertus
<html>
<head>
<style>
input {width:100px}
</style>
</head>
<body>
<input type="button" value="123">
<br>
<input type="button" value="onetwothree">
<br>
<input type="button" value="onetwothreefourfivesix">
</body>
</html>
--
Jon Perry
pe...@globalnet.co.uk
http://www.users.globalnet.co.uk/~perry/maths/
http://www.users.globalnet.co.uk/~perry/DIVMenu/
BrainBench MVP for HTML and JavaScript
http://www.brainbench.com
"Bertus Dam" <b....@gmx.net> wrote in message
news:OQZ470I6...@TK2MSFTNGP11.phx.gbl...
Regards,
Bertus
"Jon Perry" <pe...@globalnet.co.uk> wrote in message
news:uPOXtKK6...@TK2MSFTNGP09.phx.gbl...
"Bertus Dam" <b....@gmx.net> wrote in message
news:OQZ470I6...@TK2MSFTNGP11.phx.gbl...
--
Dave Anderson
Unsolicited commercial email will be read at a cost of $500 per message. Use of
this email address implies consent to these terms. Please do not contact me
directly or ask me to contact you directly for assistance. If your question is
worth asking, it's worth posting.
<button>OK</button
<button>Properties</button>
When you look at the two generated buttons, you'll see that the OK button
barely has any margins on the left and the right side of the text.
When you look at the properties button however, there's a big margin on the
left and the right side of the text.
I just want the margins to be equal, no matter how much text is on the
buttons.
Bertus
"Dave Anderson" <GTSPXO...@spammotel.com> wrote in message
news:uNxFWSL6...@TK2MSFTNGP12.phx.gbl...
It isn't going to happen. This is one of annoyances of using IE's GUI widgets
and there's nothing you can do about it. It's a bug in rendering the button
widget; it doesn't matter if the element is <button> or <input type="button">.
BTW, the property you should be adjusting is padding, not margin. Margin is the
space outside the border; padding is the space between the border and the
content. But in this case, even setting the padding to 0 doesn't solve the
problem.
If you need pixel control, you'll have to roll your own button widget:
span.button {
padding: 1px 3px;
color: ButtonText;
background-color: ButtonFace;
border: thin ButtonFace outset;
font: caption;
}
--
Steve
To know yet to think that one does not know is best; Not to know yet to think
that one knows will lead to difficulty. -Lao-Tzu
button.menuButton {width: expression(this.scrollWidth + 16);}
Is this a smart thing to do, or is the expression continuously evaluated?
The fact that expression is IE5+ only doesn't matter to me. It's for a
webapp.
Comments please.
Bertus
"Steve Fulton" <cerbe...@hotmail.com> wrote in message
news:OF3vD2V6...@TK2MSFTNGP12.phx.gbl...
Consider using something other than the <BUTTON> tag in that case. Here's one
alternative:
<STYLE TYPE="text/css">
.myButton {
font-family: Verdana,Tahoma,Georgia,sans-serif;
font-size: 10pt;
padding: 0px 20px;
font-weight: bold;
border: solid #003366 1px;
background-color: #eeeeee;
}
.myButton A:link, .myButton A:visited {
text-decoration:none;
color: #006699;
}
.myButton A:hover {
color: #003366;
}
</STYLE>
<TABLE>
<TR><TD><DIV CLASS="myButton">
<A HREF="" ONCLICK="doStuff();return false">OK</A></DIV></TD>
<TD><DIV CLASS="myButton">
<A HREF="" ONCLICK="doStuff();return false">Properties</A></DIV></TD></TR>
</TABLE>
"Dave Anderson" <GTSPXO...@spammotel.com> wrote in message
news:uy2Gg0X6...@TK2MSFTNGP11.phx.gbl...