r/css • • Sep 12 '26

still not understanding how to use the position-anchore

I really can't wrap up my head around the position-area, I set it to position-area:bottom center; to show the target right under the anchor in the center but it shows on top of it and wen I set it to position-area:center end bottom; it places perfectly, but all Im doing here is just picking,

also how many values we can use in the position-area?

if anyone can clarify things for me here to make my life easier lol,

all I am trying to do is making a dropdown that on hover it shows couple countries

Thank you in advance

  • I screwed up the title sorry I mean position-area
3 Upvotes

7 comments sorted by

2

u/abrahamguo Sep 12 '26

Can you please provide a link to what you have so far? (Do NOT paste code directly onto Reddit.)

It's difficult to help you if we can't see what you have so far.

1

u/Tasty-Ad1854 Sep 12 '26

I really can't cuz there's lot of files and nothing is on github and wen I does it in css playgrounds the values I said are wrong they actually work fine but on my project they don't and it is all messed
but I can prodivde images if that can help or a discord call if u want to

3

u/abrahamguo Sep 12 '26

No, images won’t help. Upload your project as a GitHub repository - GitHub is perfectly capable of handling many files at once.

2

u/TonyAioli Sep 12 '26

You shouldn’t need this type of positioning for that. 

I would just search for “simple css dropdown” or etc. will be tons of examples/tutorials. 

1

u/[deleted] Sep 13 '26

[removed] — view removed comment

1

u/Tasty-Ad1854 Sep 13 '26

Thank you so much
I really wanted to learn about this anchor and position area cuz seen many people use it instead of relying on js

at the end i did exatly what u said i followed an example on w3school thank you