D
D
DevilPrado2020-04-15 21:31:05
css
DevilPrado, 2020-04-15 21:31:05

How to overlay one element on another?

5e9751faabf38754776511.png5e9752063070b225849016.png
I'm trying to impose a button on the grid, but with the relative value, the button, although it is positioned left and top, but without absolute positioning expands the field with the text below . the edges of the browser window, not the designer itself

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Ankhena, 2020-04-15
@DevilPrado

absolute is positioned relative to the nearest parent in a position different from static (usually it turns out to be relative, less often absolute)
And from the browser window only if there are no such parents.
So the container is relative and go.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question