What's new
HTML Forums | An HTML and CSS Coding Community

Welcome to HTMLForums; home of web development discussion! Please sign in or register your free account to get involved. Once registered you will be able to connect with other members, send and receive private messages, reply to topics and create your very own. Our registration process is hassle-free and takes no time at all!

how to scroll the element belong to a group?

eric

New member
when the mouse is on top of the blue box, how to scroll the one?
It is too hard to describe as word, here is what I mean:
Note: I need to change the background color when mouse hover

2023-02-12-19-32-21.png
 
Last edited:
The best way to scroll an element that belongs to a group is to use the scrollIntoView() method. This method will scroll the element into view so that it is visible on the page. You can also use the scrollBy() method to scroll the element by a certain amount of pixels.
 
The best way to scroll an element that belongs to a group is to use the scrollIntoView() method. This method will scroll the element into view so that it is visible on the page. You can also use the scrollBy() method to scroll the element by a certain amount of pixels.
is it possible to use pure css?
 
Back
Top