Previous Message
Next Message

CSS url() vs background=""

Sent by Dave Silvester on 16 August 2004 17:05


On Monday 16 Aug 2004 15:53, Shawn Milo wrote:
> background-image: url("http://wserver1/images/m_strat_header.gif");

Have you tried removing the quotes and using just the brackets:

background-image: url(http://wserver1/images/m_strat_header.gif);

Also, as has been pointed out by Bjørn, if the images, CSS and site are all on 
the same server, you don't really need a full URL, so a relative one might be 
better:

background-image: url(images/m_strat_header.gif);

That may need tweaking depending on the file layout of your site.  Possible 
variations that could work are:

background-image: url(/images/m_strat_header.gif);

background-image: url(../images/m_strat_header.gif);

...and so on.  First though, just lose the quotes and see if that solves it.

~Dave

-- 

Dave Silvester
Music Technology Junkie
Web: http://www.mu-sly.co.uk/
Email: sly at mu hyphen sly dot co dot uk
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Previous Message
Next Message

Message thread: