Reply to Re: Add a background image to a div

Your name:

Reply:


Posted by Cristian on 11/04/07 02:08

On 3 nov, 19:39, "rf" <r...@invalid.com> wrote:
> "Cristian" <crisj...@gmail.com> wrote in message
>
> news:1194138480.895484.144660@v3g2000hsg.googlegroups.com...
>
> > On 3 nov, 18:58, Adrienne Boswell <arb...@yahoo.com> wrote:
> >> Gazing into my crystal ball I observed Cristian <crisj...@gmail.com>
> >> writing innews:1194134939.825448.36200@50g2000hsm.googlegroups.com:
> >> > I have an image in a DIV#logo that is contained within a DIV.
> > It's a relative URL,
>
> > div#logo {
> > background: url(data/img/corners.jpg);
>
> One more little bit of information. If you had provided a URL up front the
> problem would have been instantly identifiable.
>
> > Does it make any difference?
>
> a huge difference.
>
> Let's *assume* you are using to an external CSS file, at some relative
> location: cssfiles/file.css.
>
> A background image specified inside that CSS file is relative to the
> location of the CSS file, not that of the site. So your "relative" location
> would in fact be:
>
> cssfiles/data/img/corners.jpg.
>
> Is my guesswork correct? :-)
>
> --
> Richard.

Sure is!
I thought it had to be relative to the HTML file. The Link was not so
relative after all :-)
Bye and Thanks everyone!

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация