Posts by Bianca Pereira • 145 points
5 posts
-
1
votes1
answer217
viewsQ: How to keep setState using Router in React?
I’m starting my studies with React and needed a help: I have an application that shows a list of "solutions". It also has a button that goes to a new page (which I programmed via Router) able to add…
-
2
votes1
answer95
viewsQ: classList.remove does not work within addeventlistener (Vanilla JS)
I have a function that hides a part of the text, and if the person clicks "read more", the rest of the text is displayed. However, I’m unable to remove the class that hides the text part. I saw that…
javascriptasked Bianca Pereira 145 -
3
votes2
answers2477
viewsQ: CSS-only carousel: problems centering and fixing size
I have a carousel created with only CSS, but I have identified some difficulties. All images are in the 4:3 ratio and may have until 640x480 px (i.e., may be less than this value), so: I cannot…
-
2
votes4
answers4799
viewsA: How to turn a rectangular image into a circle (without distorting it)
I placed the image inside a container, adding a fixed size and the border-radius. Then I adjusted the image itself inside that container with the transform. .round-container { width: 17rem; height:…
-
5
votes4
answers4799
viewsQ: How to turn a rectangular image into a circle (without distorting it)
As shown in the image below, I can make the picture rectangular turn round, but it gets distorted: .posts .posts-item img { max-width: 100%; height: auto; display: block; margin: 0 auto;…