Jump to content

[SOLVED] classes in css...


galvin

Recommended Posts

Sorry, this isn't a PHP question but you guys are so smart I'm sure I can get a quick answer here....

 

If throughout my code I have a bunch of classes like name1, name2, name3, etc. etc through name50, is there a way to write the CSS just ONCE, so that it styles the same thing for all of those different classes. Essentially, I'd want something like the following where X could be any number...

 

.nameX {

 

}

 

...rather than have to do...

 

.name1 {

 

}

 

.name2 {

 

}

 

.name3 {

 

}

 

and so on.

Link to comment
https://forums.phpfreaks.com/topic/140358-solved-classes-in-css/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.