CSS Tutorial 47 : Position text in image

Опубликовано: 17 Март 2025
на канале: Code Amir
127
0

CSS position property is used to set the position of text over an image. This can be done by enclosing the image and text in an HTML “div”. Then make the position of div “relative” and that of text “absolute”. The absolute elements are positioned relative to their parent (div). The top, right, bottom, and left properties of these elements specify their location from the parent.