![]() |
Applying Stylesheet to IFRAME contents
I'm using vbadvanced and have created a module to show information in an IFRAME.
However, the contents of the IFRAME is never formatted according to what I've set up in my style. The contents always has a white background with black text in Times New Roman. Is there something I'm missing? I've tried to include a class="alt1" in the IFRAME tag and have even surrounded the contents of the HTML file in <span class="alt1"> tags, all to no avail. Included is an example: HTML Code:
<td class="$getbgrow alt1" width="100%" align="center"> HTML Code:
<span class="alt1"><strong>Blah blah blah ...</strong><br /><br />Blah blah blah</span> |
I think the iframe page needs access to the style sheet on it's own, since it's loaded separately. That's just a guess :) To test this guess, save a copy of your stylesheet to a file, and add the file to the iframe page...
|
Quote:
- Sid |
Quote:
|
that iframe is simply a page, so you need to use $headinclude to get the CSS properly.
|
Quote:
Quote:
PHP Code:
- Sid |
I'm trying to do the same thing. Solved the problem by putting $style[css] in the <head> tags.
|
Quote:
|
Put it this way:
<? echo $style['css']; ?> |
Quote:
Now, I've done what you've said and this is the code I've got: HTML Code:
<html> But when I do this, I just get a white background with black text and no formatting other than the bold and line breaks in the scrolling IFRAME. Can someone tell me what I'm doing wrong? - Sid |
All times are GMT. The time now is 09:28 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|