Размещение блока по координатам X и Y в CSS ⇐ CSS
-
Anonymous
Размещение блока по координатам X и Y в CSS
Let's say that i have a 400px width x 400px height container div, i want to place inside this container a box. I have two X and Y coords which should determine the position of that box inside the container.
I don't really understand which CSS statement i should use to set the position according to those two parameters. From what i know i need 4 parameters to position a box inside another box: top, left, bottom, right, how can i do that with only two?
Источник: https://stackoverflow.com/questions/523 ... rds-in-css
Let's say that i have a 400px width x 400px height container div, i want to place inside this container a box. I have two X and Y coords which should determine the position of that box inside the container.
I don't really understand which CSS statement i should use to set the position according to those two parameters. From what i know i need 4 parameters to position a box inside another box: top, left, bottom, right, how can i do that with only two?
Источник: https://stackoverflow.com/questions/523 ... rds-in-css
Мобильная версия