Search Form and Social Buttons

HotThemes Logo and Top Menu

To request a forum account, please login here and open support ticket. Only customers with active order(s) can open forum account!

× Discussion about "DesignNow" Joomla template

Topic-icon iframe wrapper - I can't change width

More
6 years 4 months ago - 6 years 4 months ago #7101 by JTGlenn1
JTGlenn1 created the topic: iframe wrapper - I can't change width
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: 6 years 4 months ago by JTGlenn1.

Please Log in to join the conversation.

More
6 years 4 months ago #7114 by ivan.milic
ivan.milic replied the 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.

More
6 years 4 months ago #7120 by JTGlenn1
JTGlenn1 replied the topic: Re: iframe wrapper - I can't change width

Please Log in to join the conversation.

More
6 years 4 months ago #7130 by ivan.milic
ivan.milic replied the 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

Please Log in to join the conversation.

More
6 years 4 months ago #7161 by JTGlenn1
JTGlenn1 replied the 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..

Please Log in to join the conversation.

More
6 years 4 months ago #7166 by milos
milos replied the 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.136 seconds

Links, Partners and Social Media