2

I am trying to do the simplest thing possible: tile a div with a subtle patterns background. I'm not new to code, but have never done this before. I have searched everywhere- simple examples posted by others do not work. Clearly there is a reason.

html:

<div id="text3">
</div>

CSS:

#text3  
{
  width:400px;
  height:400px;
  background-image: url ("green_cup.png");
  background-repeat: repeat;
}

I have searched extensively and this method seems to work for everyone but me. Why is this code not applying a tiled pattern as a background to my '`?

Freiheit
  • 8,408
  • 6
  • 59
  • 101

1 Answers1

2

You're going to hate me for this, but it would have worked if you had just got rid of the space between url and (

url (" would become url("

JSFIddle: http://jsfiddle.net/7AYt8/

MarshallOfSound
  • 2,629
  • 1
  • 20
  • 26