I am altering the default scaffold.css inside of public/stylesheets to
include this:
td {
/* background-image:url(../../../public/images/product_bkgrnd1.png); /
*
/* background-image:url(../public/images/product_bkgrnd1.png);*/
}
How do I target the file public/images/product_bkgrnd1.png so that it
will render in a View''s <td> as specified in the scaffold.css.
I have tried a few different paths as you can see above, but no love
yet.
Thanks for helping out the rookie here.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---
On Mon, Apr 13, 2009 at 2:56 PM, elliottg <x@simplecircle.net> wrote:> > I am altering the default scaffold.css inside of public/stylesheets to > include this: > > td { > /* background-image:url(../../../public/images/product_bkgrnd1.png); / > * > /* background-image:url(../public/images/product_bkgrnd1.png);*/ > } > > How do I target the file public/images/product_bkgrnd1.png so that it > will render in a View''s <td> as specified in the scaffold.css.td { background-image: url( "/images/product_bkgrnd1.png" ); } HTH, -- Hassan Schroeder ------------------------ hassan.schroeder-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Perfect! Thanks a ton. Elliott On Apr 13, 6:02 pm, Hassan Schroeder <hassan.schroe...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On Mon, Apr 13, 2009 at 2:56 PM, elliottg <x...-+PdThUrr9bOXUBVsB0ZYTw@public.gmane.org> wrote: > > > I am altering the default scaffold.css inside of public/stylesheets to > > include this: > > > td { > > /* background-image:url(../../../public/images/product_bkgrnd1.png); / > > * > > /* background-image:url(../public/images/product_bkgrnd1.png);*/ > > } > > > How do I target the file public/images/product_bkgrnd1.png so that it > > will render in a View''s <td> as specified in the scaffold.css. > > td { background-image: url( "/images/product_bkgrnd1.png" ); } > > HTH, > -- > Hassan Schroeder ------------------------ hassan.schroe...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---