On Mar 30, 2011, at 5:10 PM, Mike Ramirez wrote: > On Wednesday, March 30, 2011 05:01:08 pm Jason Culverhouse wrote: >> On Mar 30, 2011, at 4:50 PM, Mike Ramirez wrote: >>> On Wednesday, March 30, 2011 04:20:32 pm Shawn Milochik wrote: >>>> I have the exact same problem. I hope there is a solution, because >>>> good site design often results in image references in the CSS. >> >> I think you guys are over analyzing the problem >> >> You can use relative urls in css >> >> Just look at >> http://www.djangoproject.com/m/css/base.css >> > > Never really been a fan of relative urls or paths. It feels clumsy and full > of > pitfalls. The angst it causes me isn't worth it, since absolute solves all > that. >
Some don't immediately grok that the that the url references in the style sheet are relative to the css file. If your reference are relative, then everything stays modular and you'll make a python developer happy when he doesn't have to muck css. To quote the spec.... http://www.w3.org/TR/CSS21/syndata.html#uri 4.3.4 URLs and URIs """ In order to create modular style sheets that are not dependent on the absolute location of a resource, authors may use relative URIs. Relative URIs (as defined in [RFC3986]) are resolved to full URIs using a base URI. RFC 3986, section 5, defines the normative algorithm for this process. For CSS style sheets, the base URI is that of the style sheet, not that of the source document. For example, suppose the following rule: body { background: url("yellow") } is located in a style sheet designated by the URI: http://www.example.org/style/basic.css The background of the source document's BODY will be tiled with whatever image is described by the resource designated by the URI http://www.example.org/style/yellow """ > Mike > -- > Avoid Quiet and Placid persons unless you are in Need of Sleep. > -- National Lampoon, "Deteriorata" > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to django-users@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.