|
Posted by Beauregard T. Shagnasty on 07/12/06 13:42
wolfing1@gmail.com wrote:
> Another question if you all don't mind.
(probably should have been a new thread.)
> With tables I normally used a CSS file for all the pages, but since
> I'm now supposed to define all the styles for each type of <div> and
> <span> I use in my pages in the CSS file... guess I should kinda make
> a CSS per web page now (for each page's particular style) plus a
> common one for the common styles?
The most successful sites generally have a consistent theme across all
pages, or at least across groups of pages relating to the same subject.
If you change themes/design on every page, your visitors will have to
relearn for each page. Not a good idea.
Use one CSS stylesheet for the whole site, and - if necessary - place
the rare "used-once" styles in the head section of the individual pages.
Careful planning negates the use of "styles for each type of <div> and
<span>".
> Because if I put it all in one file as I'm used to, pages will be
> including a lot of unnecessary styles (they'd be including styles
> from many other pages that the particular page doesn't use)
Your style sheet would be loaded and cached upon first visit, and not
needed to be downloaded for each subsequent page. So a few extra styles
in the sheet are not a penalty.
--
-bts
-Warning: I brake for lawn deer
Navigation:
[Reply to this message]
|