Background position

A background (usually an image) can be positioned very precisely with “background-position”.
This property can have many values and it is not affected by the padding value so the text could be positioned separately. The property can have two values – first for the horizontal position and the 2nd for the vertical.
The values could be center/left etc. or percentages or pixels.

Here is an example of a div with positioned background image and text:

Leave a Reply

Your email address will not be published. Required fields are marked *