- Posts: 51
- Thank you received: 1
iframe wrapper - I can't change width
-
JTGlenn1
Inactive member - Topic Author
- Member
Less
More
13 years 8 months ago - 13 years 8 months ago #7101
by JTGlenn1
iframe wrapper - I can't change width was created 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.
See attached screenshots.
Last edit: 13 years 8 months ago by JTGlenn1.
Please Log in to join the conversation.
-
ivan.milic
Support Staff - Moderator
Less
More
- Posts: 14116
- Thank you received: 1639
13 years 8 months ago #7114
by ivan.milic
Replied by ivan.milic on topic Re: iframe wrapper - I can't change width
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
Less
More
- Posts: 51
- Thank you received: 1
13 years 8 months ago #7120
by JTGlenn1
Replied by JTGlenn1 on topic Re: iframe wrapper - I can't change width
Please Log in to join the conversation.
-
ivan.milic
Support Staff - Moderator
Less
More
- Posts: 14116
- Thank you received: 1639
13 years 8 months ago #7130
by ivan.milic
Replied by ivan.milic on topic Re: iframe wrapper - I can't change width
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
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
Less
More
- Posts: 51
- Thank you received: 1
13 years 8 months ago #7161
by JTGlenn1
Replied by JTGlenn1 on topic Re: iframe wrapper - I can't change width
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..
<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
Less
More
- Posts: 6761
- Thank you received: 718
13 years 8 months ago #7166
by milos
Replied by milos on topic Re: iframe wrapper - I can't change width
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.180 seconds