Posts by vncsbraga • 61 points
3 posts
-
0
votes1
answer20
viewsA: Why `position: Sticky;` of an element stops working when it reaches the `margin-bottom` of the next element?
I was able to understand the behavior. An element positioned as sticky remains so until the end of the box contents of the parent element. In this case, the parent element of header is body. So,…
-
0
votes1
answer20
viewsQ: Why `position: Sticky;` of an element stops working when it reaches the `margin-bottom` of the next element?
I’m doing an exercise in CSS and I have a header stylized with position: sticky. This style works correctly until the scroll of the page finds the margin-bottom of the next element (div), when the…
-
6
votes2
answers144
viewsQ: How does changing the prototype of the String.prototype.toString() method affect this code in Javascript?
I couldn’t understand why the method reverse is applied in the string "abcde" (over-written in toString) and not in "12345". String.prototype.reverse = function() { return…