Php photo gallery TWG | JFUploader | TWG Flash upload | WFU | Forum
https://www.tinywebgallery.com/forum/

two iframe side by side
https://www.tinywebgallery.com/forum/viewtopic.php?f=21&t=4053
Page 1 of 1

Author:  boumboum [ 10. Mar 2016, 22:16 ]
Post subject:  two iframe side by side

Hello,
I like to have two iframe (advanced pro) side by side on the same page, but for now they are one below the other.
I can not put them side by side, there is there a possibility?
Thank you in advance for your help.

Author:  TinyWebGallery [ 10. Mar 2016, 23:03 ]
Post subject:  Re: two iframe side by side

Sure. you can give the iframe also styles. So use float:left on both for example.

Best, Michael

Author:  boumboum [ 11. Mar 2016, 09:37 ]
Post subject:  Re: two iframe side by side

I have tried this before, but it does not work.
However ca works for two image but when it comes to tags [advanced pro iframe] it does not work.

for example :

[advanced_iframe securitykey="key" src="url internet" use_shortcode_attributes_only="true" id="classement A" allowfullscreen="true" show_iframe_loader="false" scrolling="no" height="1000" width="1000" show_part_of_iframe="true" show_part_of_iframe_x="40" show_part_of_iframe_y="400" show_part_of_iframe_width="450" show_part_of_iframe_height="550" show_iframe_loader="true"]

[advanced_iframe securitykey="key" src="url internet" use_shortcode_attributes_only="true" id="resultats A" allowfullscreen="true" scrolling="no" height="1500" width="1000" show_part_of_iframe="true" show_part_of_iframe_x="40" show_part_of_iframe_y="420" show_part_of_iframe_width="450" show_part_of_iframe_height="800" show_iframe_loader="true"]

Author:  TinyWebGallery [ 11. Mar 2016, 10:29 ]
Post subject:  Re: two iframe side by side

Because the feature you use renders additional divs around. You need to set show_part_of_iframe_style=""

or you put your own divs around and style these.

Best, Michael

Author:  boumboum [ 11. Mar 2016, 12:15 ]
Post subject:  Re: two iframe side by side

Thanks for your help

but I still do not manage to make it work, I applied this:

[advanced_iframe securitykey="key" src="url" use_shortcode_attributes_only="true" id="classement A" allowfullscreen="true" show_iframe_loader="false" scrolling="no" height="1000" width="1000" show_part_of_iframe="true" show_part_of_iframe_x="40" show_part_of_iframe_y="400" show_part_of_iframe_width="450" show_part_of_iframe_height="550" show_iframe_loader="true"show_part_of_iframe_style = float:"left"]

[advanced_iframe securitykey="key" src="url" use_shortcode_attributes_only="true" id="resultats A" allowfullscreen="true" scrolling="no" height="1500" width="1000" show_part_of_iframe="true" show_part_of_iframe_x="40" show_part_of_iframe_y="420" show_part_of_iframe_width="450" show_part_of_iframe_height="800" show_iframe_loader="true"show_part_of_iframe_style =float:"right"]

Author:  TinyWebGallery [ 11. Mar 2016, 13:29 ]
Post subject:  Re: two iframe side by side

Because this not valid short code what you have written:

show_iframe_loader="true"show_part_of_iframe_style = float:"left"]
->
show_iframe_loader="true" show_part_of_iframe_style="float:left;"]

Best, Michael

Author:  boumboum [ 11. Mar 2016, 14:10 ]
Post subject:  Re: two iframe side by side

I'm sorry to annoy you with this problem.

I think I properly applied your advice but it still does not work.
If what I have set is good, there would he not an option, attorneys in the raglages plugin which shall prevent run?

code :

[advanced_iframe securitykey="key" src="url" use_shortcode_attributes_only="true" id="classement A" allowfullscreen="true" show_iframe_loader="false" scrolling="no" height="1000" width="1000" show_part_of_iframe="true" show_part_of_iframe_x="40" show_part_of_iframe_y="430" show_part_of_iframe_width="450" show_part_of_iframe_height="500" show_iframe_loader="true" show_part_of_iframe_style="float:left;"]

[advanced_iframe securitykey="key" src="=url" use_shortcode_attributes_only="true" id="resultats A" allowfullscreen="true" scrolling="no" height="1500" width="1000" show_part_of_iframe="true" show_part_of_iframe_x="40" show_part_of_iframe_y="420" show_part_of_iframe_width="450" show_part_of_iframe_height="800" show_iframe_loader="true" show_part_of_iframe_style="float:right;"]

Author:  TinyWebGallery [ 11. Mar 2016, 15:27 ]
Post subject:  Re: two iframe side by side

Your area is 1000 px wide - so 2 iframes mean 2000px - is your screen that wide? Because if you flat left and you have less than 2000 px in the sourounding element the frames are shown below each other.

so you might want a div around this with a size > 2000 px.

And than it also depends on your css of the theme. Maybe there are additional borders or styles you have to take into account and maybe you also have to overwrite them.

Best, Michael

Page 1 of 1 All times are UTC + 1 hour [ DST ]
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/