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.
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'