Colin B
2012-06-16 09:12:11 UTC
The trouble comes once I begin creating the other pages of the site. I wanted my main content to be in a different location to where it appears on the home page but I cannot change the location of "main" in my css file otherwise it would also change the location on my home page.
What is the best way of naming my content areas in this type of situation? Would it be best for me to prefix the names of divs etc for the homepage with something such as "main-homepage" or "homepage-main" so that managing all of my content areas and styles makes sense to me/others and avoids me accidentally changing content that I do not wish to change?
It seems that following the commonly used naming conventions advised in online guides would only work if the content was located in the same place site-wide, or am I missing something here?
Thanks