Most of the time, the background is included in the Wordpress Theme. I just want to show you here what the background code looks like. It can be complicated sometimes so we will build up as we go.

The background goes in the <body> tag of the page. Sometimes the background customization is included with the theme itself.

If it isn't you can change it in the .css file. We will study .css at a later date. Right now we are concentrating on html

A normal background statement will look something similar to this:

body {
background-image: url("any.gif");
background-color: #2d2d2d;
}


What this shows is that if the picture any .gif doesn't exist the entire background will be that color.

You can also ask it to make the picture no-repeat or repeat.

This code would look like this:

body {
background-image: url("any.gif");

background-repeat: no-repeat;
background-color: #2d2d2d;

}

I hope this helps you find your background information in html. You mostly see this code now in CSS. Sometimes you have to go into your editor and edit the CSS which contains HTML. It is all tied together!


Tasks 0/2 completed
1. Play with changing your background on your page
2. Leave any questions on the comments


Top Helpers in This Lesson

Join the Discussion
Write something…
Recent messages
sgreenb7 Premium
Looks like a great training, I'll check it out tonight.
Reply
edensbox Premium
Thank you.I hope you enjoy it. I am going to continue on with the class lessons. There will be an entire series.
Reply
Loes Premium
Great training! You should add this to your training on your lists
Reply
edensbox Premium
I added it to the training page :)
Reply
Loes Premium
Top! :)
Reply
edensbox Premium
was a brilliant ideas. there is so much knowledge lost in these pages. Its hard to know whats been done or not.
Reply
Top