Hi Guys,
I'm getting a weird formatting problem with IE.
I'm trying to create an H2 element, and it's working fine in Chrome and FF.
But in IE, it's all spaced out. For the life of me I can't figure out why.
Check out this link in IE and FF (or chrome)
http://details.at/h2_test.cfm
In FF/Chrome, it looks right. Title, underlined, and a button floated to the right. They are all level. in IE, it seems to push the button below the title text, but then floats it to the right.
Here's the code.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<STYLE>
#content h2
{
margin: 0.5em 0; padding-bottom: 0.25em;
border-bottom: 1px solid #146eb4;
font-size: 1.2em;
width:100%;
}
.h2_button
{
font: .9em Arial, Helvetica, sans-serif;
background-color: #FFFFFF;
color: #146eb4;
border: 1px solid #146eb4;
float:right;
margin: 0 0 0 0;
}
</STYLE>
<title>Untitled</title>
</head>
<body>
<div id="content">
<H2>This is a test <INPUT class="h2_button" type="submit" name="Go" value="Create"></H2>
<P>brown fox jumps over fat piggie</P>
</div>
</body>
</html>
I'm getting a weird formatting problem with IE.
I'm trying to create an H2 element, and it's working fine in Chrome and FF.
But in IE, it's all spaced out. For the life of me I can't figure out why.
Check out this link in IE and FF (or chrome)
http://details.at/h2_test.cfm
In FF/Chrome, it looks right. Title, underlined, and a button floated to the right. They are all level. in IE, it seems to push the button below the title text, but then floats it to the right.
Here's the code.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<STYLE>
#content h2
{
margin: 0.5em 0; padding-bottom: 0.25em;
border-bottom: 1px solid #146eb4;
font-size: 1.2em;
width:100%;
}
.h2_button
{
font: .9em Arial, Helvetica, sans-serif;
background-color: #FFFFFF;
color: #146eb4;
border: 1px solid #146eb4;
float:right;
margin: 0 0 0 0;
}
</STYLE>
<title>Untitled</title>
</head>
<body>
<div id="content">
<H2>This is a test <INPUT class="h2_button" type="submit" name="Go" value="Create"></H2>
<P>brown fox jumps over fat piggie</P>
</div>
</body>
</html>