External CSS might be pretty complicated for some at first, but once you've mastered it, you'll save hours and hours of your time.
Basically, external css is having all of your CSS in a .css file, and a code on each of your pages which 'calls' the CSS, so when you edit your CSS, every page will update, saving time as you won't have to go through every change to make small changes! This works well with php and/or iframes. Firstly, create a new .css file, and paste all of your CSS on to it. If you can't use .css files on your site, use a .html file, and add <style> and </style> tags at the start and end. Then, use this code on all of your regular pages, and you're done!
(Remember to add the URL of the location of your CSS, or your CSS won't be called by the code.)
No comments:
Post a Comment