Click to See Complete Forum and Search --> : frame background styles


sir_toby
09-30-2004, 09:15 AM
Hi,
isnīt it generally possible to define background style attributes like background-image etc. for frames of a frameset? I tried it out (using an id selector) and it only worked in Firefox - IE, Netscape and Opera simply ignored it. When making the definitions for the bodies of the individual frame documents it worked from the beginning...
Is this normal, or may I have missed anything?

gil davis
09-30-2004, 09:58 AM
A frame is a window. It is not really an HTML object, and does not have styles that can be applied. The HTML page that loads into the frame is the thing that will have styles.

I am surprised that Firefox did it. Was it an IFRAME?

sir_toby
09-30-2004, 12:20 PM
No, it wasnīt an iframe, just a plain normal one... But as it can be assigned a name and an id attribute I thought it could as well be addressed from a css as any other element.

Shmohel
09-30-2004, 03:32 PM
don't even bother trying to get that to work that way. just amend the loaded file. (the argument of using frames is an entire separate issue ;))