For example:
I have two css files. One with the class foo and one with the class bar:
foo.css:
---------
.foo {
font-size : 12px;
}
bar.css:
---------
.bar {
some include function here
}
What I want is that the class bar becomes exactly the same as foo.
Thanks!
StarQuake
--
for some how-to's and rpms visit my site : http://solid.bounceme.net
for commercially supported solutions visit : http://www.robas.com
StarQuake schreef:
> For example:
>
> I have two css files. One with the class foo and one with the class bar:
>
> foo.css:
> ---------
> .foo {
> font-size : 12px;
> }
>
> bar.css:
> ---------
> .bar {
> some include function here
> }
>
> What I want is that the class bar becomes exactly the same as foo.
>
> Thanks!
>
> StarQuake
>
Just call it .foo and the styles it will overrule (or supplement) the styles
in the foo.css
--
Niek
'sNiek wrote:
> StarQuake schreef:
>
>
> Just call it .foo and the styles it will overrule (or supplement) the
> styles in the foo.css
>
>
Yes, that would be possible but the problem is I can't change the code
that refers to both foo.css and bar.css
So I'd rather do something like this:
.bar {
include .foo
}
If there's no solution I can just copy the contents of the foo class to
the bar class but then everytime I change foo I will have to change bar too.
StarQuake
--
for some how-to's and rpms visit my site : http://solid.bounceme.net
for commercially supported solutions visit : http://www.robas.com
StarQuake schreef:
> 'sNiek wrote:
>
>
> Yes, that would be possible but the problem is I can't change the code
> that refers to both foo.css and bar.css
>
> So I'd rather do something like this:
>
> .bar {
> include .foo
> }
>
> If there's no solution I can just copy the contents of the foo class to
> the bar class but then everytime I change foo I will have to change bar
> too.
>
> StarQuake
Another solution would be something like <p class="foo bar">
--
Niek
StarQuake wrote:
> For example:
>
> I have two css files. One with the class foo and one with the class bar:
>
> foo.css:
> ---------
> .foo {
> font-size : 12px;
> }
>
> bar.css:
> ---------
> .bar {
> some include function here
> }
>
> What I want is that the class bar becomes exactly the same as foo.
If you used only one css file you could do something like this:
.foo, .bar {
// Common properties
}
.foo {
// Different properties (foo only)
}
.bar {
// Different properties (bar only)
}