div classes let disappear the slideshow?!

More
8 years 7 months ago #37656 by MichaelM
Hi!

My problem is, that the slideshow disappears as soon as I wrap it in a div class...

Im loading it with the "Modules anywhere" plugin within the content works like a charm, no jquery conflicts.

But now I needed to set the max-width to 600px an let the module float right:

css:
Code:
div.slidercontainer { max-width: 600px; margin: 10px; float: right; }

and code within the content:
Code:
<div class="slidercontainer"> {module Produktslider} </div>

The Slideshow doesn't appear!
Changing the css to "width: 600px" it works - but certainly not responsive :-(

So I tried to wrap another div around it with a max-width 600px and set the "slidercontainer" to width 100% - the module disappears...

Have you an idea how to find out of that?

Regards
Michael

Please Log in or Create an account to join the conversation.

More
8 years 7 months ago #37657 by ced1870
Hi
I think that the problem is the float right, because then it removes the natural element width. You can try a display:inline-block on the slidercontainer

CEd

Joomlack Webmaster and Developer

Please Log in or Create an account to join the conversation.

More
8 years 7 months ago #37658 by MichaelM
Thank you - I changed the css to
Code:
div.slidercontainer { max-width: 600px; margin: 10px; display: inline-block; }

... and the module disappears (but showing up in the source)

Please Log in or Create an account to join the conversation.

More
8 years 7 months ago #37659 by ced1870
give me your url to check

Joomlack Webmaster and Developer

Please Log in or Create an account to join the conversation.

More
8 years 7 months ago - 8 years 7 months ago #37660 by MichaelM
Last edit: 8 years 7 months ago by MichaelM.

Please Log in or Create an account to join the conversation.

More
8 years 7 months ago #37669 by ced1870
you can try a float right with a width in %
this works

I don't know exactly what you want to have as final resul,but you must put it without float or position, or give it a width

Joomlack Webmaster and Developer

Please Log in or Create an account to join the conversation.

Time to create page: 0.220 seconds

Fast and powerful creation, customizable and responsive.

Read More

We have 1255 guests and one member online