Previous Message
Next Message

Re: [css-d] Strange Problem with @import and alternate css for NS 4

Sent by Rijk van Geijtenbeek on 30 January 2002 09:09


On Wednesday, January 30, 2002, David wrote:

DM> At my site at http://www.davidmcdonald.org , I have been using the following
DM> piece of Javascript in order to serve up different style sheets to older
DM> browsers:

DM> Now, I want to use the @import method instead, so I have set up a test
DM> version using at http://www.davidmcdonald.org/test.asp that uses the
DM> following:

DM> <link rel="stylesheet" type="text/css" href="common/css/older.css"
media="screen">>
DM> <style type="text/css">@import url("common/css/compliant.css");</style>

DM> The first CSS is for NS 4 etc, the second for standards compliant
DM> browsers...or so I thought.

As you know, rules from bith stylesheets are applied. I think this
part from 'older.css' is the problem:

#sites {
        position: absolute;
        background-color: #e7f2d0;
        width: 150px;   
        top: 320px;
        left: 1px;
        border: 1px solid #aaaaaa;      
        padding: 10px;
        }       

As 'compliant.css' doesn't contain a value for 'left', the 1px is
used... And left is more imprortant than right in left-to-right
scripts.



Greetings,
 Rijk                            [EMAIL-REMOVED]

Mot du Jour:
Couldn't myself have better it said.
Previous Message
Next Message

Message thread: