Hi Rustom,

it goes like this:

- use no slash if the file in url() or href="" is in the same folder as css
/ html file
- "../" at the beginning means: go up one level in the folder structure
- "../../" means: go up 2 levels in the folder structure
- "./" means: current folder

for more info read go to:
http://www.webmasterworld.com/css/3663647.htm

http://stackoverflow.com/questions/940451/using-relative-url-in-css-file-what-location-is-it-relative-to


it's best to ask such questions on http://www.stackoverflow.com because
you'll get a bunch of answers quickly + you can search throguh related
questions to get answers, also: look for "css url" "html base url" an
similar stuff

Greg

2011/7/10 Rustom Mody <[email protected]>

> On Thu, Jun 23, 2011 at 1:15 AM, Kevin A. Cameron <[email protected]
> > wrote:
>
>> Mind posting the HTML? It's easier to understand than an abstracted list
>> like that.
>>
>> If you want the border down the entire right side of the site, something
>> like this might work:
>> body {background: transparent url("/image-path/image_name.jpg") repeat-y
>> scroll 100% 0;}
>>
>>
> After many hours of struggling I got something to work:
>
> I had to put url(../images/image.gif) not just url(images/image.gif)
>
> So I guess my noob status is well just too noob :-).
>
> I need to figure out something about these paths and their logic.
>
> Actually I figured out that I had not figured out how to deal with url()
> but as you can guess google is not very helpful when asked to search for
> 'url' :-)
>
> So any tips on figuring out paths in html/css/js?
>
> Thanks
>
> Rusi
>
> --
> --
> You received this because you are subscribed to the "Design the Web with
> CSS" at Google groups.
> To post: [email protected]
> To unsubscribe: [email protected]




-- 
BAZINGA Designs

http://www.bazingadesigns.com

Igor Wnuk
Ul. PCK 5/20
24-100 Puławy

tel. 667 200 706

REGON: 060622686
NIP: 716-255-43-47

-- 
--
You received this because you are subscribed to the "Design the Web with CSS" 
at Google groups.
To post: [email protected]
To unsubscribe: [email protected]

Reply via email to