D
Disc Magnet
I created an image, a text box, a submit button and a text all of
height 15px. But they all appear to be of different heights in Firefox
as well as Chrome, on Linux as well as Windows.
Here is the code:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/
TR/html4/strict.dtd">
<html lang="en">
<head>
<title>Test</title>
</head>
<body>
<form action="/">
<div style="border: 1px solid gray">
<img src="http://www1.free-clipart.net/gallery2/icons/Alphabet/a/
38.gif" height="15px" width="15px" style="border: 1px solid yellow"
alt="">
<input type="text" style="height: 15px; border: 1px solid red">
<input type="submit" style="height: 15px; border: 1px solid
green">
<span style="height: 15px; border: 1px solid blue">foo</span>
</div>
</form>
</body>
</html>
Here is an online paste for trial and experimentation (warning: the
following link is not permanent):
http://www.webdevout.net/test?0O
I want all of them to be of the same size and aligned properly. Could
anyone please help me understand the issue here and a way to fix it?
height 15px. But they all appear to be of different heights in Firefox
as well as Chrome, on Linux as well as Windows.
Here is the code:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/
TR/html4/strict.dtd">
<html lang="en">
<head>
<title>Test</title>
</head>
<body>
<form action="/">
<div style="border: 1px solid gray">
<img src="http://www1.free-clipart.net/gallery2/icons/Alphabet/a/
38.gif" height="15px" width="15px" style="border: 1px solid yellow"
alt="">
<input type="text" style="height: 15px; border: 1px solid red">
<input type="submit" style="height: 15px; border: 1px solid
green">
<span style="height: 15px; border: 1px solid blue">foo</span>
</div>
</form>
</body>
</html>
Here is an online paste for trial and experimentation (warning: the
following link is not permanent):
http://www.webdevout.net/test?0O
I want all of them to be of the same size and aligned properly. Could
anyone please help me understand the issue here and a way to fix it?