Certain DIVs within a website can usually be constant…
I.E. The footer of a webpage generally doesn’t change and should be standard across all pages.
Within a websites CSS, you’ll have things like;
.FooterDIV {
Background: #FFFFFF;
Color: #000000;
}
I was wondering what the best way is to specify the standard text within a DIV, is this possible in CSS alone? PHP perhaps?
After some ‘Googling’ I have found no clear answer – it’s difficult to know how to word this.
A simple approach is to put those “global” elements into a seperate php file each, which you include in all of your pages. For example:
footer.php
Then simply add the following line wherever you want the footer to appear