iframe wrapper - I can't change width

  • JTGlenn1
    Inactive member
  • Topic Author
  • Member
  • Member
More
12 years 11 months ago - 12 years 11 months ago #7101 by JTGlenn1
I have a mouse-over java script that I'm using on my old site, but when I enter the code into Joomla 1.6, it strips out much of the code and it won't work. So, I trying to use an iframe, the javascript works, with the DesignNow template, I can't set the width. In the control panel, there is the option to set the width and height, but only the height works. If I change to one of the default templates and refresh, the width setting works.
See attached screenshots.
Attachments:
Last edit: 12 years 11 months ago by JTGlenn1.

Please Log in to join the conversation.

More
12 years 11 months ago #7114 by ivan.milic
Maybe there is something hidden thats sets width of iframe from styles because it has higher priority than iframe's width attribute, that should be checked using some code inspector like firebug, or you can give us link so we could check.

Please Log in to join the conversation.

  • JTGlenn1
    Inactive member
  • Topic Author
  • Member
  • Member
More
12 years 11 months ago #7120 by JTGlenn1

Please Log in to join the conversation.

More
12 years 10 months ago #7130 by ivan.milic
Hi,
This should do the trick:

Put this in index.php of template just before the </head>

<style type="text/css">

IFRAME.wrapper{
width: none;
}

</style>


BTW. This is css entry that causes this:

.wrapper, .header_wrap2, .topPanelModules, .main_area, .bottom {
width: 1000px;
}

it should be in css/template_css.php

Please Log in to join the conversation.

  • JTGlenn1
    Inactive member
  • Topic Author
  • Member
  • Member
More
12 years 10 months ago #7161 by JTGlenn1
I tried adding the change to the template's index.php and it didn't work.

<style type="text/css">

IFRAME.wrapper{
width: none;
}

</style>

I then looked in the css/template_css.php file and found on line 26 & 27 this entry.

.wrapper,.header_wrap2,.topPanelModules,.main_area,.bottom {
width:<?php echo $overallWidth; ?>px;

It appears it is matching the wrapper to the same width as my template.
I tried taking out .wrapper, from the css/template_css.php file. That fixed the iframe width, but the aligment of that module was all the way to the left of the page.

I then tried changing the line to the following, but it did the same thing.

.header_wrap2,.topPanelModules,.main_area,.bottom {
width:<?php echo $overallWidth; ?>px;
}

.wrapper{
width: none;
}
That's where it is now..

Please Log in to join the conversation.

  • milos
    Support Staff
  • Moderator
  • Moderator
More
12 years 10 months ago #7166 by milos
Could you add something in Page Suffix field in the Menu item parameters of your Wrapper?

Please Log in to join the conversation.

Time to create page: 0.165 seconds
Powered by Kunena Forum