can i do somethinkg like:
.page-text-size-* { font-size: * !important; }
"*" should be replaced on number.
Or i need to use this way:
.page-text-size-10 { font-size: 10px !important;  }
.page-text-size-12 { font-size: 12px !important;  }
can i do somethinkg like:
.page-text-size-* { font-size: * !important; }
"*" should be replaced on number.
Or i need to use this way:
.page-text-size-10 { font-size: 10px !important;  }
.page-text-size-12 { font-size: 12px !important;  }
Using only CSS it would only be possible with Mozilla, in which it is still an experimental technology (https://developer.mozilla.org/en-US/docs/Web/CSS/Using_CSS_variables#Browser_compatibility) .
But you could use Less (http://lesscss.org) or Sass (http://sass-lang.com) to accomplish it.
 
    
    Using SASS, this is completely possible. Plain CSS doesn't support this kind of thing.
If you want one for every number in a sequence:
@for $i from 1 through 4 {
  .page-text-size-#{$i} {
     font-size: $i;
  }
}
Or if you want only numbers you specify:
$list: 10 20 24 36;
@each $size in $list {
  .page-text-size-#{$size} {
    font-size: $size; 
   }
}
Read through this for reference: http://thesassway.com/intermediate/if-for-each-while
 
    
    First of all dont use !important, its bad practice, answer for your question is simple and placed here LESS
