Time for action—Basic CSS editing for modifying background images
We chose one image to show how CSS can be edited to modify the background images.
Now that you have created a background with your image editor or chosen from one of the resources, you can carry on with the following steps:
Upload the image you had chosen to the
img
folder of your new PrestaShop theme directory. The following is the image we will use for this exercise, and it is referred to as "myimage.jpg":Go to your
global.css
file. Find the element you want to add the image to. In this case, thebody
element:body { background-color: white; font-size: 11px; font-family: Verdana, Arial, Helvetica, Sans-Serif; color: #5d717e; text-align:center }
Insert a new line so that your code will look like the following:
body { background-color:white; font-size:11px; font-family:Verdana, Arial, Helvetica, San-Serif; color:#5d717e; text-align:center; background-image:url('../img/myimage.jpg') }