- Thank you received: 0
Adjusting the position in the module [SOLVED]
-
-
Topic Author
- New Member
-
Less
More
15 years 3 months ago - 4 years 7 months ago #534
by
Adjusting the position in the module [SOLVED] was created by
Hey All,
I have HOT Image Slider installed, no issues there, everything went well and the user interface is easy to use.
My issue exists with the position of the slider in the module.
Right now the slider is centered in the module and I would like to the entire slider to be right aligned within the module space, so the background image (fit to the module size) can appear as a fixed image on the left hand side. The background image is in place correctly but is being cut off because of the slide position
I've fiddled around with the padding and haven't been able to move the entire module to the right with success.
Any suggestions would be great, or maybe an option for left, right, center align in the UI.
Mike
*SOLUTION*
In the default.php file located in /modules/mod_hot_image_slider/tmpl/default.php
Search for:
div.wrap { (around line 29)
And edit the margin values as required.
As for left, center, and right aligning. If you add another CSS attribute to this tag then it appears to work for me
float:left;
float:center;
float:right;
I have HOT Image Slider installed, no issues there, everything went well and the user interface is easy to use.
My issue exists with the position of the slider in the module.
Right now the slider is centered in the module and I would like to the entire slider to be right aligned within the module space, so the background image (fit to the module size) can appear as a fixed image on the left hand side. The background image is in place correctly but is being cut off because of the slide position
I've fiddled around with the padding and haven't been able to move the entire module to the right with success.
Any suggestions would be great, or maybe an option for left, right, center align in the UI.
Mike
*SOLUTION*
In the default.php file located in /modules/mod_hot_image_slider/tmpl/default.php
Search for:
div.wrap { (around line 29)
And edit the margin values as required.
As for left, center, and right aligning. If you add another CSS attribute to this tag then it appears to work for me
float:left;
float:center;
float:right;
Last edit: 4 years 7 months ago by milos. Reason: solved
Please Log in to join the conversation.
-
milos
Support Staff -
- Moderator
-
Less
More
- Posts: 6810
- Thank you received: 724
15 years 3 months ago #535
by milos
Replied by milos on topic Re:Adjusting the position in the modul
Open index.php of your template and find code for this module position. It looks like <jdoc:include type="modules" name="user3" /> or something like that. Change it to:
or
This might work.
Code:
<div style="float:right"><jdoc:include type="modules" name="user3" /></div>
Code:
<div align="right"><jdoc:include type="modules" name="user3" /></div>
Please Log in to join the conversation.
-
-
Topic Author
- New Member
-
Less
More
- Thank you received: 0
15 years 3 months ago #536
by
Replied by on topic Re:Adjusting the position in the modul
Hi Milos,
Thanks for the quick reply.
The current line of code in the HTML for that module was
<?php if( JRequest::getVar( 'id' ) == '68' ): ?>
<jdoc:include type="modules" name="user5" />
<?php endif; ?>
and I replaced it with
<?php if( JRequest::getVar( 'id' ) == '68' ): ?>
<div align="right"><jdoc:include type="modules" name="user5" /></div>
<?php endif; ?>
and it had no effect. So I think the issue is CSS related. I'll post a solution if I find one.
Mike
Thanks for the quick reply.
The current line of code in the HTML for that module was
<?php if( JRequest::getVar( 'id' ) == '68' ): ?>
<jdoc:include type="modules" name="user5" />
<?php endif; ?>
and I replaced it with
<?php if( JRequest::getVar( 'id' ) == '68' ): ?>
<div align="right"><jdoc:include type="modules" name="user5" /></div>
<?php endif; ?>
and it had no effect. So I think the issue is CSS related. I'll post a solution if I find one.
Mike
Please Log in to join the conversation.
Time to create page: 0.134 seconds