Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Centre iFrameCentre iFrame
Previous
 
Next
New Post
9/25/2014 1:34 AM
 

Hi,

How do you centre an iframe inside a html module? There is no other contents inside this module.

Thanks in advance

 
New Post
9/26/2014 7:30 AM
 
Hi tango,
In the html of the text/html module create a div round the iframe and give the div a class name iframe-center for example.

In you css skin or container file add a new class and place the following css to center the iframe in the div:

.iframe-center{
margin-left:auto;
margin-right:auto;
width:100%;
}

Hope this helps,

Geoff.

      
 
New Post
9/30/2014 9:46 AM
 

Thanks Geoff,

Ive added the code to the skin file but cant quite get the html code right.

I have "iframe width="860" height="484" src="//player.vimeo.com/video/105008240" frameborder="0">

Thanks again

 
New Post
10/1/2014 3:30 AM
 

Hi tango,

With the supplied css (above) try to do the following:

<div class="iframe-center">

<iframe html code goes here/>

</div>

If the screen is wide enough the iframe will be centered.

Also make sure that the editor does not strip out code that is needed.

Regards,

Geoff

 


      
 
New Post
10/2/2014 10:37 AM
 
Hi,

How about putting that page in an IFrame module.  Wouldn't this solve your problem?  You could build around the IFrame other modules to provide a good content. I have developed Master/Detail forms from Aspx using IFrames and a little coding.

Garimo

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Centre iFrameCentre iFrame


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out