PDA

View Full Version : CSS styling


paul-chambers
09-12-2012, 05:17 PM
Hi,

If I have a container in which I have applied some css, ie border, padding width etc, when any value is changed such as the padding element within the css for a particular div, how do I apply this change to affect multiple pages?

Do I just save the particular style as external and attach it to each page?

thanks

paul-chambers
09-12-2012, 05:32 PM
Please ignore my post, copying the code for the css style to each..doh!

gentleone
09-12-2012, 06:50 PM
Paul, like you have it now if you want to change something to your css, you will have to change it on every page... cumbersome work.

Put all your styles in an external stylesheet (CSS file) and link on each page to that stylesheet. The biggest benefit of this is that if you need to change something in your css, you only need to change it in that stylesheet and it will have effet to all your pages.

paul-chambers
09-13-2012, 08:38 AM
Yes I thought that would be the case, I'm doing the external style sheet and will attach.

Thanks again