I am looking to assign variable names to css class dynamically. Here im explaining with small code
#A1, #A2, #A3, #A4{
float: left;
clear: left;
width: 300px;
margin: 15px;
}
instead of writing " #A1, #A2, #A3, #A4" , i want to write some variable. with for loop i want to define four classes while page is getting loaded.
could you pls explain me how to do that?