/    Sign up×
Community /Pin to ProfileBookmark

button problem with IE

I have this code for CSS:
#button
{
width:50px;
position:absolute;
left:165px;
top:100px;
}

and this for the form in html
<input type=”submit” id=”button” name=”Submit” value=”Submit” />

When i run it in mozilla it’s all ok.But when i run it on IE it button’s borders appear to be more high something i didn’t said to program to do it.Exactly,it is like if someone adds height:10px;(for example) to the code.But i didn’t demand this.
What’s the problem?

to post a comment
HTML

3 Comments(s)

Copy linkTweet thisAlerts:
@donatelloApr 24.2010 — deleted
Copy linkTweet thisAlerts:
@donatelloApr 24.2010 — deleted
Copy linkTweet thisAlerts:
@donatelloApr 24.2010 — I see that all the time, and remember reading something about how IE and FF interpret the baseline differently...

There was a fix, but I prefer to use a conditional statement as a 'hack' to fix it.

Look up IE Conditional for CSS and/or HTML to find a workaround.

Ahhhh Micro$oft!


[B]Conditional HTML[/B]

So your IE content can be in this:
[code=html]
<!--[if IE]>
If you can read this, you are using Internet Explorer<br />
<![endif]-->


[/code]


Your Non-IE content can go here:
[code=html]
<p>This is <comment>not (non-IE content displayed!)</comment> Internet Explorer.</p>
[/code]

Internet Explorer on both Windows and Mac supports the <comment> tag. No other browsers do.

This conditional statement will also target non-IE browsers:
[code=html]
<!--[if !IE]><!-->
<h1>You are NOT using Internet Explorer</h1>
<!--<![endif]-->

[/code]
×

Success!

Help @jojo13 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...