fmrock
08-27-2007, 05:24 PM
hey everyone,
I am working on my first CSS layout. I am building an online chart viewer. Basicly, 2 columns, the left column will have a activeX control to view and manipulate a TIFF image. The right column will need to display a small table, and have a form with a textarea box in it. I need to make this page 100% width and 100% height, so no scroll bars are allowed. Also, in the right column, the text area box should size to fit the space that is left in that column.
Here is a stripped down version of what I am working with.
Any help would be great, the problem is with the text area/form and having it resize.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<style type="text/css">
FORM { FONT-FAMILY: Arial, Helvetica, sans-serif; FONT-SIZE: 12px }
INPUT { FONT-FAMILY: Arial, Helvetica, sans-serif; FONT-SIZE: 12px }
SELECT { FONT-FAMILY: Arial, Helvetica, sans-serif; FONT-SIZE: 12px }
TEXTAREA { FONT-FAMILY: Arial, Helvetica, sans-serif; FONT-SIZE: 12px }
TABLE { FONT-FAMILY: Arial, Helvetica, sans-serif; FONT-SIZE: 12px }
TR { FONT-FAMILY: Arial, Helvetica, sans-serif; FONT-SIZE: 12px }
TD { FONT-FAMILY: Arial, Helvetica, sans-serif; FONT-SIZE: 12px }
html {
margin: 0px;
padding: 0px;
margin-left:0px;
margin-right:0px;
margin-bottom:0px;
margin-top:0px;
height:100%;
}
body {
margin:0px 0px 0px 0px;
height: 100%;
font-family:Arial, Helvetica, sans-serif;
}
.Chart {
margin-left: 0px;
margin-right: 305px;
height: 99%;
border:solid;
border-width:2px;
}
.AddendumForm {
float: right;
padding: 0px 0px 0px 0px;
width: 305px;
height: 99%;
border:solid;
border-width:2px;
}
.AddendumForm form{
height:100%;
margin: 0px;
padding: 0px;
margin-left:0px;
margin-right:0px;
margin-bottom:0px;
margin-top:0px;
}
.AddendumForm textarea{
height:100%;
margin: 0px;
padding: 0px;
margin-left:0px;
margin-right:0px;
margin-bottom:0px;
margin-top:0px;
}
.container {
height: 100%;
}
</style>
<title>Chart Details</title>
</head>
<body>
<div class="container">
<div class="AddendumForm">
<form action="#.asp" method="post" name="frmAddendum">
<textarea cols="55" name="Addendum" ></textarea>
</form>
</div>
<div class="Chart">
</div>
</div>
</body>
</html>
I am working on my first CSS layout. I am building an online chart viewer. Basicly, 2 columns, the left column will have a activeX control to view and manipulate a TIFF image. The right column will need to display a small table, and have a form with a textarea box in it. I need to make this page 100% width and 100% height, so no scroll bars are allowed. Also, in the right column, the text area box should size to fit the space that is left in that column.
Here is a stripped down version of what I am working with.
Any help would be great, the problem is with the text area/form and having it resize.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<style type="text/css">
FORM { FONT-FAMILY: Arial, Helvetica, sans-serif; FONT-SIZE: 12px }
INPUT { FONT-FAMILY: Arial, Helvetica, sans-serif; FONT-SIZE: 12px }
SELECT { FONT-FAMILY: Arial, Helvetica, sans-serif; FONT-SIZE: 12px }
TEXTAREA { FONT-FAMILY: Arial, Helvetica, sans-serif; FONT-SIZE: 12px }
TABLE { FONT-FAMILY: Arial, Helvetica, sans-serif; FONT-SIZE: 12px }
TR { FONT-FAMILY: Arial, Helvetica, sans-serif; FONT-SIZE: 12px }
TD { FONT-FAMILY: Arial, Helvetica, sans-serif; FONT-SIZE: 12px }
html {
margin: 0px;
padding: 0px;
margin-left:0px;
margin-right:0px;
margin-bottom:0px;
margin-top:0px;
height:100%;
}
body {
margin:0px 0px 0px 0px;
height: 100%;
font-family:Arial, Helvetica, sans-serif;
}
.Chart {
margin-left: 0px;
margin-right: 305px;
height: 99%;
border:solid;
border-width:2px;
}
.AddendumForm {
float: right;
padding: 0px 0px 0px 0px;
width: 305px;
height: 99%;
border:solid;
border-width:2px;
}
.AddendumForm form{
height:100%;
margin: 0px;
padding: 0px;
margin-left:0px;
margin-right:0px;
margin-bottom:0px;
margin-top:0px;
}
.AddendumForm textarea{
height:100%;
margin: 0px;
padding: 0px;
margin-left:0px;
margin-right:0px;
margin-bottom:0px;
margin-top:0px;
}
.container {
height: 100%;
}
</style>
<title>Chart Details</title>
</head>
<body>
<div class="container">
<div class="AddendumForm">
<form action="#.asp" method="post" name="frmAddendum">
<textarea cols="55" name="Addendum" ></textarea>
</form>
</div>
<div class="Chart">
</div>
</div>
</body>
</html>