CSS inheritance, or something like that

Jinguange

New Member
This is probably silly question, but here it goes.I have 3 ID in my css file, and they all have some same code. For example:\[code\]#ID1 { // some code width: 300px; height: 300px;} #ID2 { // some code width: 300px; height: 300px;} #ID3 { // some code width: 300px; height: 300px;}\[/code\]MY question is: is is possible to make some class or ID in CSS and call it inside another CSS class or ID. For example:\[code\]#setting { width: 300px; height: 300px;}#ID1 { .setting // some code} #ID2 { .setting // some code} #ID3 { .setting // some code}\[/code\]Thanks.
 
Back
Top