Multiple Divs, same name on page?
I have a page of photos with accompanying text on a page. The photo-text divs are all class formatted (div class="format_name"), and they are all the same, CSS-wise, and are arranged vertically on the page. Originally, when there were just three sets of photo-text, I created new divs for each one. Now I need to add 4 more sets, so I just pasted the first three, and repasted the first one over again, to get 7. It's a fluid layout; I have checked the corresponding CSS files (three of them) for each screen view, and those files are all the same within each view.
I have tested this new page on a few different browsers, and it seems to work. And the more I think about it, I probably only needed 1 pair of photo-rext Divs, which I could then copy and paste 6 times. They would all have the same name (and the same corresponding CSS file), but other than their sequence on the page (in the source code), there is no difference in their formatting attributes (width, margin, etc.)
This approach would seem to economize the css file by avoiding redundant formatting instructions. On the other hand, I don't do this enough to get good at it. My question: Is there any reason here not to use multiple Divs with the same name on a page? (Dreamweaver CS6)
Thanks
