This is a cross-compatibility issue between Firefox and IE. Before I try to explain the problem, it might be easier to simply post the code and allow you to see the problem for yourself.
CSS file:
HTML file:
My problem is that while this displays correctly on an IE browser (Do people still use this browser?? j/k), the text in the left and right columns do not line up correctly in Firefox. I managed to fix this problem with some CSS hacks, but I was hoping that there was a clean method of fixing the problem.
I love those cross-browser CSS interpretation differences. Thank you for your help in advance. Happy Easter.
Thank you,
Nick Ruiz
CSS file:
Code:
/* prayerRequest.css */
#prayerRequest
{
/*position: relative;*/
background-color: #FFF;
border:1px solid #000;
/* width: 500px; */
/* height: 300px; */
margin-left: 50px;
margin-right: 50px;
margin-bottom: 20px;
margin-top: 20px;
/* padding: 10px; */
}
#prayerHeader
{
background-color: #AE4947;
font-size: 1.2em;
padding-left: 5px;
margin-bottom: 20px;
text-align: center;
}
#prayerLeft
{
float:left;
padding-left: 5px;
width: 50%;
}
#prayerRight
{
}
#prayerBody
{
padding: 5px;
}
HTML file:
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<!-- testPrayerFormat.html -->
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=windows-1250">
<meta name="generator" content="PSPad editor, [URL unfurl="true"]www.pspad.com">[/URL]
<title>Prayer Request test</title>
<link type="text/css" rel="stylesheet" href="css/prayerRequest.css"/>
</head>
<body>
<div id="prayerRequest">
<div id="prayerHeader">Request #1290</div>
<div id="prayerLeft">
<p>This stuff should be at the left.</p>
<p>Blah, blah</p>
</div>
<div id="prayerRight">
<p>This stuff should be at the right.</p>
<p>Blah, blah</p>
</div>
<div id="prayerBody">
<p>This is the body of the prayer request.</p>
</div>
</div>
</body>
</html>
My problem is that while this displays correctly on an IE browser (Do people still use this browser?? j/k), the text in the left and right columns do not line up correctly in Firefox. I managed to fix this problem with some CSS hacks, but I was hoping that there was a clean method of fixing the problem.
I love those cross-browser CSS interpretation differences. Thank you for your help in advance. Happy Easter.
Thank you,
Nick Ruiz