Hello,
I've got a new project in the pipeline which needs to be 'skinable' including change to company name, logo etc...
I wan't to do this correct from the off and so would like some advice....
Let's say we have a company logo on the left now to make a site skinable, I assume you should design everything regarding colour scheme, fonts, etc... via CSS but normally you would still have in the XHTML an <img> tag, but if I want to make this site fully skinable, would it be better to use a div with a class? i.e.
The HTML template wouldn't need to be altered for the img tag, as i would use
.... then the css would be
Should I try to keep in mind this type of design concept throughout, thus having a site that can be skinned / white labelled by simply editing one CSS file.
At what point should CSS NOT be used for dynamic / changable 'CONTENT', as I understood CSS was 'DESIGN' not 'CONTENT' but the two can blur as i've just shown.
should I have a separate database system for configuration data, i.e. my HTML will use a template system when I can use my 'CGI' program of choice to replace 'Company Name' via a database, so I then edit the database to white label for another company, or can this be done via CSS and more importantly SHOULD it be done via CSS.
if you had a <div class='companyname'> tag where the company name could be inserted, how would you change that content via CSS?
and last but not least, what is the diference between using class vs ID with CSS, i.e.
thanks 1DMF
"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you.
I've got a new project in the pipeline which needs to be 'skinable' including change to company name, logo etc...
I wan't to do this correct from the off and so would like some advice....
Let's say we have a company logo on the left now to make a site skinable, I assume you should design everything regarding colour scheme, fonts, etc... via CSS but normally you would still have in the XHTML an <img> tag, but if I want to make this site fully skinable, would it be better to use a div with a class? i.e.
The HTML template wouldn't need to be altered for the img tag, as i would use
Code:
<div class="companylogo"></div>
Code:
.companylogo {
background: url(companylogo.jpg);
height: 200px;
width: 200px;
border: 0px;
}
Should I try to keep in mind this type of design concept throughout, thus having a site that can be skinned / white labelled by simply editing one CSS file.
At what point should CSS NOT be used for dynamic / changable 'CONTENT', as I understood CSS was 'DESIGN' not 'CONTENT' but the two can blur as i've just shown.
should I have a separate database system for configuration data, i.e. my HTML will use a template system when I can use my 'CGI' program of choice to replace 'Company Name' via a database, so I then edit the database to white label for another company, or can this be done via CSS and more importantly SHOULD it be done via CSS.
if you had a <div class='companyname'> tag where the company name could be inserted, how would you change that content via CSS?
Code:
.companyname {
what goes here?
}
and last but not least, what is the diference between using class vs ID with CSS, i.e.
Code:
.myclass{
}
#myid{
}
"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you.