Selection area width

I have a web page with <div style='width: 640px; margin: 0 auto'>

as a main block with no text content outside of it. How do I make the selection stay within the area <div>

?

Screenshot of how's it currently being selected

The picture above shows how it is selected by default.

So how can I limit the width of the select area to the width to <div>

?

+3


source to share


1 answer


The solution is to use the style overflow: hidden

for <div>

. Thanks @MuhammadAli for the answer.



0


source







All Articles