Page 1 of 1

Getting an Iframes to work in IE & FF

Posted: Sun Oct 15, 2006 3:42 am
by stevek
Hi,

Just thought I'd post a way to get an iframe to work in both IE & FF.

I created a second style sheet one for the pages with frames and one for my other pages.

Modify the style sheet as below.

/* center wrapper, min max width */
div#pagewrapper {
   border: 1px solid black;
   margin: 0 auto;       /* this centers wrapper */
   max-width: 80em;   /* IE wont understand these, so we will use javascript magick */
   min-width: 60em;
   color: black;
ADD THIS - MY FRAME BACKGROUND COLOR IS FFF AND I HAVE A GRAPHIC DOWN THE LEFT SIDE
background: #FFF url("./background.jpg") repeat-y;
height: auto;
}

ADD THIS -

div#pagewrapper :after {
content: " ";
display: block;
height: 0;
clear: both;
}

May not work for everyone but I hope this saves someone some time.

Good luck.

Steve