Adjusting the position in the module [SOLVED]


  • Topic Author
  • Visitor
  • Visitor
14 years 1 month ago - 3 years 6 months ago #534 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;
Last edit: 3 years 6 months ago by milos. Reason: solved

Please Log in to join the conversation.

  • milos
    Support Staff
  • Moderator
  • Moderator
More
14 years 1 month ago #535 by milos
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:
Code:
<div style="float:right"><jdoc:include type="modules" name="user3" /></div>
or
Code:
<div align="right"><jdoc:include type="modules" name="user3" /></div>
This might work.

Please Log in to join the conversation.


  • Topic Author
  • Visitor
  • Visitor
14 years 1 month ago #536 by
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

Please Log in to join the conversation.

Time to create page: 0.297 seconds
Powered by Kunena Forum