Problem with margin

Hi people 👋. I am having problem when I am trying to put the .quantity-category (which is the quantity of the product) aligned in the top right corner using margin, mostly because when I use margin, the container width increases as well, and I don't want this to happen. What is happening? And how can I solve it? https://codepen.io/ssstephanyyy/pen/rNqYYqE
13 Replies
Chris Bolson
Chris Bolson•2y ago
Have you tried to use position absolute?
Sste
Sste•2y ago
Yes Can you help me, please?
Chris Bolson
Chris Bolson•2y ago
this
Sste
Sste•2y ago
Yes. But the problem is that is not aligned with the text
Mannix
Mannix•2y ago
what text?? you didn't say anything about aligning it to a text??
Sste
Sste•2y ago
Sorry It was my mistake I want it aligned with the product name
Sste
Sste•2y ago
Yessss. Thanks 🙂 I will try to give more space between the texts Your code help me
Mannix
Mannix•2y ago
you could also put in a sup element inside the heading tag
Sste
Sste•2y ago
Sup element? What is this?
Want results from more Discord servers?
Add your server