2

When I use the following:

body {
    overflow: hidden;
}

The element that is overflowing is clipped, when I do the following:

body {
   overflow: auto;
}

It's not clipped but now there's a scrollbar where it's going over.

I'd like to make the element not clip but also to not show the scrollbar or be scrollable

1 Answer 1

1

So basically, you don't want to control overflow, since you don't want the element to overflow. You want its parent container to adapt to whatever the size of the element.

It can be done in multiple ways. One of the best being, not doing anything since most HTML elements won't clip whatever's inside them.

Except for window, which is the boundaries of your browser. And it can't be skinned anyway.

I don't have much informations, but a wild guess would be to believe that you are trying to have an iframe behave like a regular HTML element.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.