Reputation: 75
I am currently building a website and need a header and a footer to repeat on every page and I was just wondering, what is the best way to structure my project. Would it be a great idea to use a "main" stylesheet to format the header and footer and then use secondary stylesheets to format whatever content I want in the other pages' main sections?
Feel free to tell me if my question does not fall in the scope of SO but I really couldn't find my anwser anywhere.
Upvotes: 0
Views: 33
Reputation: 15499
if you can use php, then have an includes folder with the header and footer files and include them in every page, the external style sheet will be able to contain all styling for the header, footer and other paage elements. If you can't use php, then you might try server side includes and use the .shtml file extension. Either way - the style sheet can cope with all included files. Just use the correct selectors, id's and classes to target the elements.
Upvotes: 1