I have several questions. I ran my html and css through a checker, and fixed all of the errors it found.
1) I was using IE for development, but have now switched to FF after reading other posts. Once my page is lined up for FF, how do I make it IE compatible? I found this code that tests for IE browser use: <!--[if IE]> <![endif]--> and I could redirect to an IE specific stylesheet.
2) I'm finding that I have to manually position most of my divs. Is that "normal"?
3) My page border does not move up to the bottom of my footer. I don't think I have any extraneous margins or padding.
4) How do you accommodate for text size changes especially in FF? I'm especially concerned about text spillover. FF lets you increase text size to the point of ridiculous!
I can't provide a link because my page is only on my desktop. My code is below. The button stuff is from a freebie program - not sure I'll keep it largely because of maintenance.
Thank you.
/*CSS for Xxxxx */
body {
top:0px;
border: 4px solid navy;
width: 915px;
color:white;
background: url("Images/bluepap.jpg");
}
#logo {
color:white;
background: url(Images/LogoTruck293x83 .png);
height: 83px;
width: 293px;
position: relative;
left: 70px;
top: 25px;
}
#dock {
color:white;
background: url(Images/100_0145_441x14 4.png);
height: 144px;
width: 441px;
position: relative;
left: 459px;
top: -81px;
border: 1px solid
}
#ocsw {
font-family: Verdana, Helvetica, Arial, sans-serif;
background:url( "Images/bluepap.jpg");
color: navy;
font-size: 20px;
font-weight: 900;
position: relative;
width: 430px;
left: 33px;
top: -110px;
}
#hrtop {
height: 10px;
color:#646464;
background: #646464;
position: relative;
top: -104px;
width:97.5%;
left:10px;
}
#navigation {
position: relative;
top:-104px;
left:10px;
}
h2 {
position:relati ve;
background:url( "Images/bluepap.jpg");
top: 20px;
font-family: Verdana, Helvetica, Arial, sans-serif;
color: navy;
font-size: 24px;
font-weight: 900;
}
#bodytext {
font-family: Verdana, Helvetica, Arial, sans-serif;
position:relati ve;
background: url("Images/bluepap.jpg");
color: black;
top: 40px;
left: 200px;
margin: 0 auto;
width:675px;
padding-bottom: 250px;
}
#leftline {
font-family: Verdana, Helvetica, Arial, sans-serif;
background: url("Images/bluepap.jpg");
color: black;
font-size: 20px;
position:relati ve;
margin: 0 auto;
width:138px;
top: -130px;
left: -368px;
border-right: 4px navy solid;
padding: 0px 0px 0px 0px;
}
#building {
margin: 0 auto;
color:black;
background: url(Images/100_0142_780x10 8.png);
height: 108px;
width: 780px;
position: relative;
padding: 0px 0px 0px 0px;
clear:both;
left: -7px;
border-left: 56px solid #646464;
border-right: 56px solid #646464;
border-top: 1px solid;
}
#footer {
position:relati ve;
margin: 0 auto;
font-family: Arial, Helvetica, sans-serif;
font-size: X-small;
background: #C2C2C2;
color: black;
font-weight: 600;
text-align: center;
width: 892px;
left: -7px;
border-bottom: 10px solid #646464;
border-top: 1px solid;
}
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<head>
<title>Xxxxxx Cold Storage and Warehouse</title>
<meta http-equiv="Content-Type"
content="text/html; charset=utf-8">
<link href="style1.cs s" rel="stylesheet " type="text/css" >
</head>
<body>
<!-- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -->
<div>
<div id="logo"></div>
</div><!-- logo outside -->
<div>
<div id="dock"></div>
</div><!-- doc outside -->
<div>
<div id="ocsw">
Cold Storage and Warehouse LLP
</div><!-- ocsw -->
</div><!-- ocsw outside -->
<div>
<div id="hrtop"></div>
</div><!-- hrtop outside -->
<div id="navigation" >
<!-- Begin Free-Buttons.org -->
<table width=0 id="free-buttons.org:scr exst0" cellpadding=0 cellspacing=0 border=0><tr>
<td title='Welcome to Xxxxxx Cold Storage'><a href="index.htm l" onmouseover='wb e("0o");' onmouseout='wbe ("0n");' onmousedown='wb e("0c");'><im g src="wbimg/imgn0.gif" name=btn0 width=70 height=18 alt='Welcome to Xxxxxx Cold Storage'></a></td>
<td title='Oneida Services'><a href="services. html" onmouseover='wb e("1o");' onmouseout='wbe ("1n");' onmousedown='wb e("1c");'><im g src="wbimg/imgn1.gif" name=btn1 width=70 height=18 alt='Xxxxxx Services'></a></td>
<td title='Welcome to Oneida Cold Storage'><a href="facility. html" onmouseover='wb e("2o");' onmouseout='wbe ("2n");' onmousedown='wb e("2c");'><im g src="wbimg/imgn2.gif" name=btn2 width=70 height=18 alt='Welcome to Xxxxxx Cold Storage'></a></td>
<td title='About Us'><a href="about.htm l" onmouseover='wb e("3o");' onmouseout='wbe ("3n");' onmousedown='wb e("3c");'><im g src="wbimg/imgn3.gif" name=btn3 width=70 height=18 alt='About Us'></a></td>
<td title='About Us'><a href="contact.h tml" onmouseover='wb e("4o");' onmouseout='wbe ("4n");' onmousedown='wb e("4c");'><im g src="wbimg/imgn4.gif" name=btn4 width=70 height=18 alt='About Us'></a></td>
</tr></table>
<script type="text/javascript">
<!--
function wbpr(im){var i=new Image();i.src=' wbimg/img'+im;return i;}
function wbe(id){x=id.su bstring(0,id.le ngth-1);document['btn'+x].src=eval('btn' +id+'.src');if( id.indexOf('e') !=-1)document['btn'+x+'e'].src=eval('btn' +id+'e.src');}
btn0n=wbpr('n0. gif');btn0o=wbp r('o0.gif');btn 0c=wbpr('c0.gif ')
btn1n=wbpr('n1. gif');btn1o=wbp r('o1.gif');btn 1c=wbpr('c1.gif ')
btn2n=wbpr('n2. gif');btn2o=wbp r('o2.gif');btn 2c=wbpr('c2.gif ')
btn3n=wbpr('n3. gif');btn3o=wbp r('o3.gif');btn 3c=wbpr('c3.gif ')
btn4n=wbpr('n4. gif');btn4o=wbp r('o4.gif');btn 4c=wbpr('c4.gif ')
//-->
</script>
<!-- End Free-Buttons.org -->
</div><!-- navigation -->
<div id="leftline">
<div id="bodytext">
<h2>Welcome to Xxxxxx Cold Storage and Warehouse</h2>
<br />
<br />
At Xxxxxx Cold Storage and Warehouse, our customers are our highest priority,
shown through extended hours, tailored reporting for your tracking needs, and
custom programs for your storage needs.
<br /><br />
Call us today and let us exceed your specific cold storage and warehousing expectations!
</div><!-- bodytext -->
<div id="building"> </div>
<div id="footer">
Xxxxxx Cold Storage and Warehouse LLC | 9999 East 55th Avenue | Xxxxxxxxx, XX 99999
<br>
voice: 555.555.5555 | fax: 555.555.5555
<br>
Site design <a href="http://www.u2logic.com "> U2logic </a>. Site powered by <a href="http://www.u2logic.com "> U2Weblink™ middleware </a>.
</div><!-- footer -->
</div><!-- leftline -->
</body>
</html>
1) I was using IE for development, but have now switched to FF after reading other posts. Once my page is lined up for FF, how do I make it IE compatible? I found this code that tests for IE browser use: <!--[if IE]> <![endif]--> and I could redirect to an IE specific stylesheet.
2) I'm finding that I have to manually position most of my divs. Is that "normal"?
3) My page border does not move up to the bottom of my footer. I don't think I have any extraneous margins or padding.
4) How do you accommodate for text size changes especially in FF? I'm especially concerned about text spillover. FF lets you increase text size to the point of ridiculous!
I can't provide a link because my page is only on my desktop. My code is below. The button stuff is from a freebie program - not sure I'll keep it largely because of maintenance.
Thank you.
/*CSS for Xxxxx */
body {
top:0px;
border: 4px solid navy;
width: 915px;
color:white;
background: url("Images/bluepap.jpg");
}
#logo {
color:white;
background: url(Images/LogoTruck293x83 .png);
height: 83px;
width: 293px;
position: relative;
left: 70px;
top: 25px;
}
#dock {
color:white;
background: url(Images/100_0145_441x14 4.png);
height: 144px;
width: 441px;
position: relative;
left: 459px;
top: -81px;
border: 1px solid
}
#ocsw {
font-family: Verdana, Helvetica, Arial, sans-serif;
background:url( "Images/bluepap.jpg");
color: navy;
font-size: 20px;
font-weight: 900;
position: relative;
width: 430px;
left: 33px;
top: -110px;
}
#hrtop {
height: 10px;
color:#646464;
background: #646464;
position: relative;
top: -104px;
width:97.5%;
left:10px;
}
#navigation {
position: relative;
top:-104px;
left:10px;
}
h2 {
position:relati ve;
background:url( "Images/bluepap.jpg");
top: 20px;
font-family: Verdana, Helvetica, Arial, sans-serif;
color: navy;
font-size: 24px;
font-weight: 900;
}
#bodytext {
font-family: Verdana, Helvetica, Arial, sans-serif;
position:relati ve;
background: url("Images/bluepap.jpg");
color: black;
top: 40px;
left: 200px;
margin: 0 auto;
width:675px;
padding-bottom: 250px;
}
#leftline {
font-family: Verdana, Helvetica, Arial, sans-serif;
background: url("Images/bluepap.jpg");
color: black;
font-size: 20px;
position:relati ve;
margin: 0 auto;
width:138px;
top: -130px;
left: -368px;
border-right: 4px navy solid;
padding: 0px 0px 0px 0px;
}
#building {
margin: 0 auto;
color:black;
background: url(Images/100_0142_780x10 8.png);
height: 108px;
width: 780px;
position: relative;
padding: 0px 0px 0px 0px;
clear:both;
left: -7px;
border-left: 56px solid #646464;
border-right: 56px solid #646464;
border-top: 1px solid;
}
#footer {
position:relati ve;
margin: 0 auto;
font-family: Arial, Helvetica, sans-serif;
font-size: X-small;
background: #C2C2C2;
color: black;
font-weight: 600;
text-align: center;
width: 892px;
left: -7px;
border-bottom: 10px solid #646464;
border-top: 1px solid;
}
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<head>
<title>Xxxxxx Cold Storage and Warehouse</title>
<meta http-equiv="Content-Type"
content="text/html; charset=utf-8">
<link href="style1.cs s" rel="stylesheet " type="text/css" >
</head>
<body>
<!-- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -->
<div>
<div id="logo"></div>
</div><!-- logo outside -->
<div>
<div id="dock"></div>
</div><!-- doc outside -->
<div>
<div id="ocsw">
Cold Storage and Warehouse LLP
</div><!-- ocsw -->
</div><!-- ocsw outside -->
<div>
<div id="hrtop"></div>
</div><!-- hrtop outside -->
<div id="navigation" >
<!-- Begin Free-Buttons.org -->
<table width=0 id="free-buttons.org:scr exst0" cellpadding=0 cellspacing=0 border=0><tr>
<td title='Welcome to Xxxxxx Cold Storage'><a href="index.htm l" onmouseover='wb e("0o");' onmouseout='wbe ("0n");' onmousedown='wb e("0c");'><im g src="wbimg/imgn0.gif" name=btn0 width=70 height=18 alt='Welcome to Xxxxxx Cold Storage'></a></td>
<td title='Oneida Services'><a href="services. html" onmouseover='wb e("1o");' onmouseout='wbe ("1n");' onmousedown='wb e("1c");'><im g src="wbimg/imgn1.gif" name=btn1 width=70 height=18 alt='Xxxxxx Services'></a></td>
<td title='Welcome to Oneida Cold Storage'><a href="facility. html" onmouseover='wb e("2o");' onmouseout='wbe ("2n");' onmousedown='wb e("2c");'><im g src="wbimg/imgn2.gif" name=btn2 width=70 height=18 alt='Welcome to Xxxxxx Cold Storage'></a></td>
<td title='About Us'><a href="about.htm l" onmouseover='wb e("3o");' onmouseout='wbe ("3n");' onmousedown='wb e("3c");'><im g src="wbimg/imgn3.gif" name=btn3 width=70 height=18 alt='About Us'></a></td>
<td title='About Us'><a href="contact.h tml" onmouseover='wb e("4o");' onmouseout='wbe ("4n");' onmousedown='wb e("4c");'><im g src="wbimg/imgn4.gif" name=btn4 width=70 height=18 alt='About Us'></a></td>
</tr></table>
<script type="text/javascript">
<!--
function wbpr(im){var i=new Image();i.src=' wbimg/img'+im;return i;}
function wbe(id){x=id.su bstring(0,id.le ngth-1);document['btn'+x].src=eval('btn' +id+'.src');if( id.indexOf('e') !=-1)document['btn'+x+'e'].src=eval('btn' +id+'e.src');}
btn0n=wbpr('n0. gif');btn0o=wbp r('o0.gif');btn 0c=wbpr('c0.gif ')
btn1n=wbpr('n1. gif');btn1o=wbp r('o1.gif');btn 1c=wbpr('c1.gif ')
btn2n=wbpr('n2. gif');btn2o=wbp r('o2.gif');btn 2c=wbpr('c2.gif ')
btn3n=wbpr('n3. gif');btn3o=wbp r('o3.gif');btn 3c=wbpr('c3.gif ')
btn4n=wbpr('n4. gif');btn4o=wbp r('o4.gif');btn 4c=wbpr('c4.gif ')
//-->
</script>
<!-- End Free-Buttons.org -->
</div><!-- navigation -->
<div id="leftline">
<div id="bodytext">
<h2>Welcome to Xxxxxx Cold Storage and Warehouse</h2>
<br />
<br />
At Xxxxxx Cold Storage and Warehouse, our customers are our highest priority,
shown through extended hours, tailored reporting for your tracking needs, and
custom programs for your storage needs.
<br /><br />
Call us today and let us exceed your specific cold storage and warehousing expectations!
</div><!-- bodytext -->
<div id="building"> </div>
<div id="footer">
Xxxxxx Cold Storage and Warehouse LLC | 9999 East 55th Avenue | Xxxxxxxxx, XX 99999
<br>
voice: 555.555.5555 | fax: 555.555.5555
<br>
Site design <a href="http://www.u2logic.com "> U2logic </a>. Site powered by <a href="http://www.u2logic.com "> U2Weblink™ middleware </a>.
</div><!-- footer -->
</div><!-- leftline -->
</body>
</html>
Comment