Structural labeling
I wonder about some advices.
Structural Labeling: Position label 'right' in class...
I mean how would you call images you have in articles that are aligned to left and right if not
""icaption-right"?
I wonder about some advices.
Structural Labeling: Position label 'right' in class...
I mean how would you call images you have in articles that are aligned to left and right if not
""icaption-right"?
it is best practice not to use position names in your class labels.
The reason for this is to allow flexibility in the event of rewriting your site.
if you have:
.myImage-right {
float: right;
}
and later want to change it to float: left; the name will no longer make sense.
The web standards advisor is only making suggestions. it is up to you as the designer whether you wish to follow them or not.
Sure, suggestions. But i wonder how others would do that in this case.
I mean you write articles and than you give the images in the article a class if you want them left or right. If you want to change that later you have to edit your articles. Then the left picture is still left and the right still right.
the better practice is to use a more generic name like "imageContainer" instead of "right-imageContainer".
how does this class-name know how to allign the image?
the class name does not know how to align the image, the styles in the class name define how the image is aligned.
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
These out-of-the-box solutions provide you proven, tested applications that can be up and running now. Build a store, a gallery, or a web-based email solution.