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
Have you tried to use position absolute?
Yes
Can you help me, please?
like this ??
https://codepen.io/MannixMD/pen/RwejOOY
Yes. But the problem is that is not aligned with the text
what text?? you didn't say anything about aligning it to a text??
Sorry
It was my mistake
I want it aligned with the product name
like this ?? https://codepen.io/MannixMD/pen/wvYPbBV
Yessss. Thanks 🙂
I will try to give more space between the texts
Your code help me
you could also put in a sup element inside the heading tag
Sup element? What is this?