HighDots Forums  

Re: Background URL property in different browsers.

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss Re: Background URL property in different browsers. in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Christopher
 
Posts: n/a

Default Re: Background URL property in different browsers. - 07-30-2004 , 03:39 PM






oopaevah (AT) yahoo (DOT) co.uk (Gaz) wrote in message news:<76ee1253.0407300651.6b433ca1 (AT) posting (DOT) google.com>...

Quote:
This css will work for Firefox :


body
{
background:white url('Images/background test.gif') bottom right
no-repeat fixed; /*firefox works*/
}

And this css works for IE.

body
{
background:white url('../Images/background test.gif') bottom right
no-repeat fixed; /*IE6 works*/
}

Is this just one of those things? It would be nice to know which
browser is doing it right though.
I don't know if there's a way around it, but it looks like IE is the
one doing it right:

For CSS style sheets, the base URI is that of the style sheet, not
that of the source document.

Source: http://www.w3.org/TR/REC-CSS2/syndata.html#x48


Reply With Quote
  #2  
Old   
Gaz
 
Posts: n/a

Default Re: Background URL property in different browsers. - 08-02-2004 , 10:07 AM






Thanks, there are two workarounds I can think of.

1) Put css files in the same directory as the source. Not good if you
want to centralize your css files.

2) Put background/list style/etc.. images in the css directory, which
feels semi-natural I suppose since they are directly linked to style.

Of course this is only the tip of the iceberg when it comes to cross
-browser differences in rendering css. Isn't it feasible to centralize
a browsing rendering engine and for all browsers to use it? Like Open
GL or other cross-system APIs. Rendering is only one element of a
browser so the bigger browsers would lose none of their other features
if they did this. This would solve all this stupidity with different
companies doing different things with something that should be the
same!!!

Let's start a petition. Perhaps in 2016 it might all be sorted out.

Quote:
I don't know if there's a way around it, but it looks like IE is the
one doing it right:

For CSS style sheets, the base URI is that of the style sheet, not
that of the source document.


Reply With Quote
  #3  
Old   
Gaz
 
Posts: n/a

Default Re: Background URL property in different browsers. - 08-02-2004 , 10:09 AM



Meant this :

2) Put background/list style/etc.. images in the css *and* the source directory...


Not this :

Quote:
2) Put background/list style/etc.. images in the css directory, which
feels semi-natural I suppose since they are directly linked to style.


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.