I have just started studying web development and tried a couple of front-end frameworks such as Bootstrap, 960 and Foundation.
For example with Bootstrap, when several images are to be universally assigned a same set of classes, for now I find it necessary that all these classes be placed within each elements individually, such as :
<div id="foo" class="container">
<img src="img1.jpg" class="thumbnail img-responsive etc etc"/>
<img src="img2.jpg" class="thumbnail img-responsive etc etc"/>
<img src="img3.jpg" class="thumbnail img-responsive etc etc"/>
<img src="img4.jpg" class="thumbnail img-responsive etc etc"/>
<img src="img5.jpg" class="thumbnail img-responsive etc etc"/>
</div>
Have anyone feel this inconvenient? I feel having to do this sort of steers away from the need which stylesheet emerges from: to separate style from structure and avoid repetition.
I wish I could select all the img in #foo, and give all of them a same set of class.I believe there ought to be a way of doing this, only that I don't know. Any ideas folks?