I am trying to make a .rhtml that has a div tag in it. That div tag has
a
background image that is physically sitting in the public/images
directory.
This is the CSS I have:
It should be okay without the quotes. Here’s the css rule I use
which works in FF and IE:
.email {
background: white url(/images/envelope.gif) no-repeat top right;
}
Start with my working code and work towards yours. Make sure your
selector is correct - set the text color to red or something to
ensure the right css rules are being grabbed.
HTH,
–Dave.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.