For example, I have an image of 100x100, and want to show it in DIVs of 100x100, 80x80, 50x50, 20x20.
so I have to define something like this in css
.div_100 {
height: 100px;
width: 100px;
// other
}
.div_80 {
height: 80px;
width: 80px;
// other same
}
.div_50 {
height: 50px;
width: 50px;
// other same
}
.div_20 {
height: 20px;
width: 20px;
// other same
}
Is this normal? Is there any more elegant way to do this?
Or make the css simple?