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{ } ?
Is there a way to write this the short way..?
-
- Posts: 534
- Joined: Thu May 05, 2011 8:19 pm
Re: Is there a way to write this the short way..?
Do they all do the same thing?
If so, why not turn them into a class and reuse it?
If so, why not turn them into a class and reuse it?
I don't like to brag, but I wasn't circumcised. I was circumnavigated.
Want to learn something new? Or maybe reinforce what you already know? Or just help out? Please subscribe to my videos: http://goo.gl/58pN9
Want to learn something new? Or maybe reinforce what you already know? Or just help out? Please subscribe to my videos: http://goo.gl/58pN9
Re: Is there a way to write this the short way..?
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..?
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