<iframe> and CSS: how to change the background color?
Posted 30 September 2012 - 07:29 PM
In the instructions it says that you can refer to a CSS on you site to adjust the colors. Simple question. What is the location of the CSS i use in the pages or is there a simple way to make the background transparant.
This is the link i'am using now (and it is not working!)
<iframe src=" &CSS=/wp-content/themes/pagelines-template-theme/style.css&szn_Naam=2012-2013&cmp_ID=95&plg_ID=244&org_ID=2&LVactie=Wedstrijdgegevens+tonen&Sorteer=wed_Datum&menubalk=off&statistieken=off&title=off&hal=off&tijd=off" width="900" height="430" >
thanks for any help...
Posted 30 September 2012 - 11:49 PM
So, <div class="myiframe"><iframe.... and close it with </iframe></div>
You can use something like:
Posted 01 October 2012 - 03:34 PM
If the page you are including in your iframe allows for an external stylesheet to be linked from the query string, you will at least need to link to it with a full url, not a relative one. So instead of use
You will probably need to for usage there too.
Posted 01 October 2012 - 03:49 PM
Looking at the FTP side there is no pagelines-template-theme directory.
So setting it to the right one (just pagelines) with or without http does not work
here's the complete code! mayby you can spot the fault.
iframe src=" width="900" height="430"
thanks for helping out!
Posted 01 October 2012 - 04:56 PM
Posted 01 October 2012 - 06:35 PM
After a quick test I was able to get it to work using a quick test file. See .
A few things:
- You need to leave off the beginning http:// as it is added by the script, or it will fail.
- Adding the framework's CSS file is totally unnecessary as you only need one rule to give it a transparent background (
As of v2.3 the framework has gone to 100% LESS, so there isn't any styles in the pagelines/style.css file anyways. Even if there were, those css rules would be using selectors that are specific to pagelines, not the page you are trying to load inline. ).
- URL to stylesheet doesn't appear to need to be encoded.
Posted 01 October 2012 - 08:47 PM
Got it working now. Just added some extra styles fit my site.
Posted 19 October 2012 - 07:45 AM
Posted 19 October 2012 - 11:37 PM