Site logo

Archived topic

Allow Div Element Outside Container

7 replies · Started by Keith on January 25, 2019

Viewing posts 1–8 of 8

Hi there,

Have you figured this out?

The header/navigation looks basically the same to me.

Let me know :)

It is the gray boxes that have the 1/2, 2/2 etc. They are on the left and right of each photo. Sorry for not being clear in my original message. I see my ambiguity now.

Hi there,

Give this a shot:

.artwork-container .previous {
    position: absolute;
    left: 0;
}

.artwork-container .next {
    position: absolute;
    right: 0;
}

Let me know :)

You are my hero! I need to spend more time learning CSS better. In the meantime, is there a way to have it so those boxes stay positions in the vertically center as the user scrolls up and down? Because what happens is that on some of the taller artwork the boxes end up outside the browser window when the user scrolls.

For sure! Change it to this:

.artwork-container .previous {
    position: fixed;
    left: 0;
}

.artwork-container .next {
    position: fixed;
    right: 0;
}

You're very welcome :)

This archived topic is closed to new replies.