Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 11-15-2012, 06:51 PM   PM User | #1
sidhu688
New to the CF scene

 
Join Date: Nov 2012
Posts: 2
Thanks: 1
Thanked 0 Times in 0 Posts
sidhu688 is an unknown quantity at this point
HTML input button padding issue

I have this below input button HTML.The issue is that when i go to developer tools and say change the text in the input button the padding increases by itself in IE9 .I tested the same in chrome and the padding stays the same over there .Also i ran the above code in w3schools site in IE 9 and there also the padding stays the same after changing the text inside .Can someone please give me some direction.

<html>
<head>
<title>
my page
</title>

</head>

<body>

<input type="button" id="btn1" value="test" />

</body>
</html>
sidhu688 is offline   Reply With Quote
Old 11-15-2012, 07:05 PM   PM User | #2
Excavator
Master Coder


 
Excavator's Avatar
 
Join Date: Dec 2006
Location: Alaska
Posts: 9,410
Thanks: 22
Thanked 1,765 Times in 1,749 Posts
Excavator has a spectacular aura aboutExcavator has a spectacular aura aboutExcavator has a spectacular aura about
Hello sidhu688,
Is that your entire code? Whenever IE renders things differently from a good browser, like FF, I always suspect a missing DocType.
See the link about DocTypes in my signature line.

See if this helps -
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<body>
<input type="button" id="btn1" value="test test test" />
<input type="button" id="btn1" value="test" />
</body>
</html>
__________________
Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad
Excavator is offline   Reply With Quote
Users who have thanked Excavator for this post:
sidhu688 (11-15-2012)
Old 11-15-2012, 07:14 PM   PM User | #3
sidhu688
New to the CF scene

 
Join Date: Nov 2012
Posts: 2
Thanks: 1
Thanked 0 Times in 0 Posts
sidhu688 is an unknown quantity at this point
awesome..worked for me

That worked just fine for me..thank you so much
sidhu688 is offline   Reply With Quote
Reply

Bookmarks

Tags
html

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 06:38 PM.


Advertisement
Log in to turn off these ads.