- This topic is empty.
-
AuthorPosts
-
December 12, 2012 at 12:34 pm #117017pmac627Participant
> Actually it could be a maintainability nightmare either way. It depends on the structure of your site and what you are designing for. If your site consists of 500+ pages that is divided into 30 sections, all with different formatting, then external style sheets are nothing more than a headache. I have some pages that share the same formatting as others, but once you bring multimedia into the mix, a single page may no longer share the same formatting as other pages in its section. A “static” website where every page is the same should use external style sheets. Otherwise, who wants to edit 2 pages for every single one webpage? Some people cannot code all that fast, in this case they should use external style sheets. I can code a page out in seconds, practically with my eyes shut, I have no need for external anything. Also, alot of the time I just simply copy and paste a page to retain its formatting, then simply replace the content (this takes about 5 seconds of time), and the pages load fast because I’m not linking to a million style sheets.
First you say you use different formatting on each page, then you say you copy and paste entire pages because the formatting is the same. I simply cannot see a need for a site that is so void of any consistency that you require separate styles for each page, especially one of 30 sections and 500+ pages. Are the header and footers on the sites the same or very similar? I find that the majority of my CSS is dedicated to just those two elements on every site I work with.
> There’s site popping up everywhere that have literally hundreds of external style sheets, goofy.
I’ve seen sites with too many stylesheets (15-20) but I have never seen any with close to 100 stylesheets. I’m sorry, but I need to see some live examples of sites that have so many different pages that they need their own styles/stylesheets.
Also, wouldn’t each page having its own inline styles make each page lose most of the benefits of caching items like images and stylesheets and therefore erase any performance benefit of using inline styles on every page.
December 12, 2012 at 12:38 pm #117019pmac627ParticipantOn a side note: Things like slideshows that consume a lot of JS and CSS but are generally only used on one page, I tend to give them their own stylesheet. I only include the stylesheet on the page that it is on via PHP. Thats the only time I have more than 2 stylesheets (normalize.css & the main stylesheet) and I don’t even do that unless the slider consumes a very large portion of my stylesheet.
December 12, 2012 at 3:46 pm #117052djdaniel150Member@pmac when did I state that I had a website with 30 sections and 500 pages? I didn’t, that was an example of a situation that might cause problems if someone was using external style sheets, I think you need to re-read the post. Also, when did I say I used different formatting on every page? I guess you are putting words into my mouth.
@thedoc When did I state “but you seem to be suggesting that we abandon external stylesheets in favour of keeping everything required in a single document.”I never stated not to use external style sheets. Again, you are also putting words into my mouth. Re-read the post! Actually I believe I stated that some people should use external style sheets, it depends on their situation.
December 12, 2012 at 3:48 pm #117053djdaniel150MemberSounds to me like you guys are just trying to start a fight, yawn.
December 12, 2012 at 3:52 pm #117054GaberMember@djdaniel150 I’m not trying to start a fight, just making a point that you should have really good reasons to ever use `
December 12, 2012 at 3:57 pm #117056TheDocMember> Actually I believe I stated that some people should use external style sheets, it depends on their situation.
In what situation should a user *not* use external stylesheets? You are either trolling this forum hard or you are severely disconnected from the reality of web development.
December 12, 2012 at 4:00 pm #117058djdaniel150MemberI actually was not referring to you Gaber. I was referring to @pmac and @thedoc
They are trying to start a fight, but I care nothing for it. It’s obvious they don’t think much before they act.As far as whether to use an external style sheet or internal style blocks, this is a matter of choice, and I never stated what people should or should not do. They can design however they like. I’ve been doing this for the last 6 years, and I’ve never seen 2 people who design the same way, so everyone has their style I guess.
December 12, 2012 at 4:03 pm #117059TheDocMemberThere is a difference between personal preference and best practice. What you are suggesting is crazy.
> If your site consists of 500+ pages that is divided into 30 sections, all with different formatting, then external style sheets are nothing more than a headache.
How on earth can you have a site that has 500 pages and *not* have styles that apply across all of those pages. That is *exactly* the reason for external stylesheets.
December 12, 2012 at 4:23 pm #117064djdaniel150Member@thedoc Again, you failed to comprehend what I stated.
December 12, 2012 at 4:53 pm #117068Paulie_DMember>or you are severely disconnected from the reality of web development.
Based on comments in this thread and others…I think we have an answer.
:)
-
AuthorPosts
- The forum ‘CSS’ is closed to new topics and replies.