0

I have a div element which I would like to be on the right side of the screen, but that does not update its position when the content extends dynamically the width of the page. I made some research, but it was unsuccessful. I know this can be done by using JQuery, but I don't know how. Any ideas?

Thanks.

0

1 Answer 1

1

You can use a fixed position on your div:

div { position: fixed; left: something; top: something; }

That would "glue" your div to the screen at the position you specify without any javascript. And if you scroll through the page, the div will stay at the same position.

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.