Page 1 of 1

Is there a way to write this the short way..?

Posted: Wed Apr 04, 2012 10:43 pm
by Jaami
Hi,
so i have alot of this id`s: t1, t2, t3, t4 etc. in my code . Now i want to know if there is shorter way to define them in CSS, than what i do atm. #t1,#t2,#t3,#t4,#t5{ }

..something like #t1 to t50{ } ?

Re: Is there a way to write this the short way..?

Posted: Thu Apr 05, 2012 7:30 am
by bowersbros
Do they all do the same thing?

If so, why not turn them into a class and reuse it?

Re: Is there a way to write this the short way..?

Posted: Thu Apr 05, 2012 5:45 pm
by Jaami
it is a json script, and i dont know alot of it, so i tried it to do in css. but now the guy from where i got it, done it(turned them into a class) for me. :)

Re: Is there a way to write this the short way..?

Posted: Fri Aug 24, 2012 11:36 pm
by xtrapsp
you could have done
t1, t2, t3, t4, t5 {

}
OR

#t1 #t2 #t3 #t4 #t5 {

}
I'm pretty sure CSS carries it over like that