Previous Message
Next Message

Organizing CSS

Sent by Bill Moseley on 27 January 2006 20:08


On Mon, Jan 23, 2006 at 09:19:18AM -0500, Adam Kuehn wrote:
> You have just violated the CSS Specification, and compliant browsers 
> are therefore free to ignore green.css. [1]  Included CSS files must 
> come at the beginning of a stylesheet, before any property/value 
> declarations, not at the end.

Which, as a css outsider, I always wondered about.  I often think it
would be nice to do:

table#specific-table {
    @import "general-table.css";
}

To make the rules only apply to that table, yet have them generic in
the general-table.css file.

That just came up because I'm using a table from another application
that comes with its own css file, but it uses generic selectors.

    table th {
        border-bottom: 1px solid #666;
    }

which I don't want to effect other elements.

-- 
Bill Moseley
[EMAIL-REMOVED]

______________________________________________________________________
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: