Unit 2, Lesson 12/13 Website Development: Layering text over image?

I have a student who wanted to put a background color in- found one and now wants to put her text over top. We can’t seem to figure it out! What am I missing?

If you’re using a solid color as the background, you can just use the background rule in CSS.

.element {
  background: color;
}

thank you! She actually found an image/bordered color that she wanted to use. She wants to add text to the center of the bordered color.

@jbrumbaugh,

If you can share a link to her site, that would be helpful. I’m not quite imagining what she is trying to do.

You can also add an image as a background by inserting the image in the .css code rather than in the html code.

Mike