|
CSS Style not working for iframe HTML files...
I have a main index.html page, which uses a linked CSS file to give styles to the index page itself. I wanted to create a scrollable, change-able center frame, so I used IFRAME. On the index.html page, I was able to get all the CSS styles working and everything positioned perfectly.
When I created a page for the IFRAME (ie. content.html), CSS only worked if I previewed that specific page. If I preview the index.html page, all content in the IFRAME no longer has any styles (it just reverts to a white background with black text).
If I insert the CSS code directly (through <style>) on "content.html," the web page will work completely. Of course, I want to be able to link the CSS code for the IFRAME so I can change just the one CSS file, instead of going through each sub-page and adding/changing the code.
Any help would be appreciated...
|