@gmqrk247
Posted
Hey!
Great work! One little hint, if you put a transparent border on the button on it's normal state, you can avoid the growing and shrinking with the hover effect. just like this:
.btn{border:2px solid transparent}
Marked as helpful
@AtulKumar0001
Posted
@gmqrk247 I really appreciate your suggestion. It really helped me. I was also wondering why my cards' size was growing and shrinking. Could you tell me why it was happening?
@gmqrk247
Posted
@AtulKumar0001 the hover effect border added extra pixels to the button. So on hover, those extra pixels pushed out everything around just by that tiny bit. Adding a transparent border on normal state means those pixels are already there, you just can't see it because it's transparent. But you could have set it to the same color as the background. I hope I've answered your question. Keep up the learning ๐
Marked as helpful
@AtulKumar0001
Posted
@gmqrk247 Thanks for answering my question๐.