Can't you go around with absolute?

Asked 2 years ago, Updated 2 years ago, 75 views

I'm using bootstrap to create a site, but if I reduce the browser width by placing a div element next to the element I placed in position: absolute, the contents of the div element will be immersed in the element I specified absolutely. Do you know how to use it?

css html5

2022-09-30 19:34

2 Answers

position:absoluteis

absolute
No space is available for the element.

As you can see, other elements are laid out as if they did not exist.Of course, I don't have to go around.

As third parties do not know what layout they are considering with just the question statements provided, consider the style with the above behavior in mind.


2022-09-30 19:34

You cannot use float for elements that you have absolute.I think you can adjust the div element next to it by setting absolute, float, margin, padding.


2022-09-30 19:34

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.