C
C
ChernovGV2020-02-13 12:07:25
css
ChernovGV, 2020-02-13 12:07:25

How to move the body on any site to embed the browser extension interface on top?

The extension requires an interface visible on the page, I plan to place it above the page. I have access to the DOM and CSS, but I can't figure out how to make it work?

There are often sticky hats on top, which you don’t want to hide either, i.e. just making your sticky hat is not an option.
Indenting water also seems like a bad idea. there are sites that have their own indent, and overwriting it is dangerous.

Who has ideas?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alex, 2020-02-13
@ChernovGV

If in simple terms:

If it’s more complicated: then you need to get the indent value using JS and increase it by the amount you need.

I
irishmann, 2020-02-13
@irishmann

Why do you want to move body? Create a div anywhere, put CSS on it and that's it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question