79171243

Date: 2024-11-08 19:01:31
Score: 2.5
Natty:
Report link

If you need to position an element that is relative to your parent element, then you need to specify not 'fixed' but 'absolute' then the element will be located relative to the parent element.

enter image description here If your content will simply be located in the middle of the block with a fixed position, then it is enough to add indents through "padding'enter image description here

Reasons:
  • Probably link only (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Denis Zhuzhkov