Hey guys,
I was wondering if you guys can give me your opinions on this technique. I want to create several classes and just call literally half a dozen on a single html element. IE
Are there any draw backs that I'm not thinking of? It seems like a pretty good idea and I was wondering why I haven't seen it around much.
Thanks,
Johnny
I was wondering if you guys can give me your opinions on this technique. I want to create several classes and just call literally half a dozen on a single html element. IE
Code:
<style>
.b {font-weight:bold;}
.i {font-style:italic;}
.center {text-align:centerl}
.left {text-align:left; float:left;}
.right {text-algin:right; float:right;}
</style>
<div class="b i center">This text is bold, italics, and centered</div>
Are there any draw backs that I'm not thinking of? It seems like a pretty good idea and I was wondering why I haven't seen it around much.
Thanks,
Johnny