Forum Moderators: open

Message Too Old, No Replies

changing CSS of a frame

         

lli2k5

9:02 am on Sep 15, 2006 (gmt 0)

10+ Year Member



Hi, given a frame name is it possible to change CSS of the frame?

Also, would it be possible to change the CSS of hyperlinks in another frame.

The only way I see is to give each of them individual ids and cycle through all of them using some sort of object.style reference.

encyclo

1:23 pm on Sep 16, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The contents of a frame or iframe are separate documents from the frameset, and as such you need to define the styles within that document itself.

If you need to derectly alter the contents of a frame, you are better using server-side includes and incorporating the contents within your main page.