• Resolved Michael Sutter

    (@michih)


    Hi there

    So far, I have done the following:

    • Created a new slider and added two columns inside (50% width each)
    • Left column: Image
    • Right column: Headline, paragraph below and a button below

    This worked so far and I made some CSS tweaks.

    The goal is now to shift the image on the left downwards and the column on the right a bit upwards, so they also cover each other a bit in the middle.
    Do you know what I mean?

    For some reason, if I shift the image down, it gets cut off every time and part of it is not visible anymore.

    Thanks a lot for your support,
    Michael

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Contributor Gutenberg Slider

    (@gutenbergslider)

    Do you have a link for us so we can check out possible css issues?

    Thread Starter Michael Sutter

    (@michih)

    Thank you – please go to this page and scroll down to the section “Neuigkeiten/News” to see the current slider.

    Best,
    Michael

    Plugin Contributor Gutenberg Slider

    (@gutenbergslider)

    @michih can you post a screenshot or codepen of how you want it to look? for me the image is not cut. That would help us to understand where the issue could be.

    Thread Starter Michael Sutter

    (@michih)

    Thank you @gutenbergslider – please check this screenshot.

    This is how it should look like.

    Thanks again,
    Michael

    Plugin Contributor Gutenberg Slider

    (@gutenbergslider)

    we created a layout like yours with the follownig code

    <figure on the left> {
      padding-top: 40px;
      transform: translateX(61px);
    }

    hope that helps, if not please get back to us.

    You can help us very much by reviewing our plugin if you like it here: https://www.ads-software.com/support/plugin/gutenslider/reviews/#new-post

    Thread Starter Michael Sutter

    (@michih)

    Thank you – what do you mean by “<figure on the left>”?
    This is not a valid argument in my opinion.

    So is it better to create a custom CSS class for the left column?

    Plugin Contributor Gutenberg Slider

    (@gutenbergslider)

    just a placeholder to target the figure / image with css that is in your left column. e.g. give it a class or use generic css selectors. in your case:

    #gutenslider-n8gitdb1p figure {
    ...
    }
    Thread Starter Michael Sutter

    (@michih)

    I see. Added your CSS to the image on the left.
    As you can see on the link provided earlier, it does not really work (this is what I have achieved as well, however, it does not “shift” like it should.

    This is what I mean by “cut off”. The bottom line of both elements is at the same height right now, but it should not.

    Thread Starter Michael Sutter

    (@michih)

    My console shows the following why z-index does not get applied:

    The position: static property prevents z-index from having an effect.
    Try setting position to something other than static.

    However, I cannot find “position:static;” anywhere relevant within Gutenslider.

    Any hints?

    Plugin Contributor Gutenberg Slider

    (@gutenbergslider)

    Not in gutenslider, just set the css to position: relative of the item you want to chnge the z-index of. There seems to be lots of theme css going on at your page. We tried in a clean install with a default theme and the above code was all it needed.

    Thread Starter Michael Sutter

    (@michih)

    Hi – done, that works now and the image on the left is behind the column on the right including text.

    However, the image is still cut off at the bottom. So it is not resolved yet, please reopen.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Slider with columns’ is closed to new replies.