How to add background image with CSS?

In this tutorial we will create a page with a background image. The CSS code for the page will look like this

body
{
font:0.9em Verdana, Arial, Helvetica,sans-serif;
background-color:#d5d7e5;
color:#000000;
background-image:url(recipes.gif);
background-repeat:no-repeat;
background-position:97% 2%;
margin:0;
padding:70px 0 0 0;
}

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.