Getting an Iframes to work in IE & FF

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Locked
stevek

Getting an Iframes to work in IE & FF

Post 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
Locked

Return to “Layout and Design (CSS & HTML)”