--- loncom/interface/loncommon.pm	2010/03/03 16:54:03	1.946
+++ loncom/interface/loncommon.pm	2010/03/03 21:33:15	1.947
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # a pile of common routines
 #
-# $Id: loncommon.pm,v 1.946 2010/03/03 16:54:03 raeburn Exp $
+# $Id: loncommon.pm,v 1.947 2010/03/03 21:33:15 droeschl Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -4874,6 +4874,14 @@ sub standard_css {
 
 
     return <<END;
+
+/* needed for iframe to allow 100% height in FF */
+body, html { 
+    margin: 0;
+    padding: 0 0.5%;
+    height: 99%; /* to avoid scrollbars */
+}
+
 body {
   font-family: $sans;
   line-height:130%;
@@ -4902,6 +4910,20 @@ form, .inline {
   width:400px;
 }
 
+.LC_iframecontainer {
+    width: 98%;
+    margin: 0;
+    position: fixed;
+    top: 8.5em;
+    bottom: 0;
+}
+
+.LC_iframecontainer iframe{
+    border: none;
+    width: 100%;
+    height: 100%;
+}
+
 .LC_filename {
   font-family: $mono;
   white-space:pre;