Web Wiz
Home
Home
Hosting Services
Hosting Services
Knowledgebase
Knowledgebase
Community and Support Forums
Support Forums
Customer Login
Customer Login

  New Posts New Posts RSS Feed - CSS documents
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Web Wiz Web Hosting 30 Day Free Trial

Windows Hosting 30 Day Free Trial, with no obligation, on all our Windows Web and Reseller Hosting Packages.

For moreĀ informationĀ see our Windows Hosting 30 Day Free Trial page.

Topic ClosedCSS documents

 Post Reply Post Reply
Author
nava View Drop Down
Newbie
Newbie


Joined: 31 July 2009
Status: Offline
Points: 2
Direct Link To This Post Topic: CSS documents
    Posted: 31 July 2009 at 6:42am
Hi all

Can you have a CSS document that is too long?

I'm doing a new site and the CSS seems to be neverending, is it ok if there are lots of lines?
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Poole, England
Status: Offline
Points: 8042
Direct Link To This Post Posted: 31 July 2009 at 8:11am
I can't see why not, however you need to remember that the CSS file needs to be downloaded to the visitors browser, so the bigger the CSS file the slower your website will be.
Back to Top
jamieellis View Drop Down
Newbie
Newbie


Joined: 05 August 2009
Location: Bedfordshire
Status: Offline
Points: 2
Direct Link To This Post Posted: 05 August 2009 at 8:45pm
Wouldn't worry too much, it would have to be absolutely huge to slow down a modern broadband connection, and even hundreds of lines seems to be now problem for all the major browsers.
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Poole, England
Status: Offline
Points: 8042
Direct Link To This Post Posted: 06 August 2009 at 12:29pm
Thats is true but there are still allot of people on dial up connections. Also allot of people use mobile connections now which unless you are in a 3G area tend to crawl along at dial up speeds.

Large CSS files also contribute to your bandwidth allocation.

You maybe better off splitting up the CSS file into smaller CSS files then include only those CSS files that you need for a particular page rather than limping them all together and including the whole lot in every page.
Back to Top
omergon View Drop Down
Newbie
Newbie
Avatar

Joined: 22 December 2009
Status: Offline
Points: 2
Direct Link To This Post Posted: 22 December 2009 at 1:54pm
I think it will not be problem unless your css size more than 20kb and beware more than 1 css, that slow downs browsers.
Back to Top
Mamady View Drop Down
Newbie
Newbie


Joined: 27 December 2009
Status: Offline
Points: 2
Direct Link To This Post Posted: 27 December 2009 at 12:21pm
there are no technical limits to the length of the css file, but as others have noted, its all about user experience.

What you may find is that your content is loaded, and then it suddenly "jumps" into place after the css file is downloaded and the page rerendered.
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Poole, England
Status: Offline
Points: 8042
Direct Link To This Post Posted: 28 December 2009 at 9:33am
Large CSS files also course a performance problem, as from memory I do recall reading an interesting article on this subject that mentioned that most browsers will stop loading in anymore content while they load in a CSS or JavaScript file, so it's best to keep these shorter if you want your page to load faster, or place the CSS within the page itself.

Other content such as the page itself and images will load in simultaneously, it's only when the browser goes to load in the CSS or JavaScript files will the browser stop simultaneously loading in other contant at the same time.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down



Become a Fan on Facebook Follow us on Twitter Web Wiz on Google+ Community Forums Web Wiz Blogs Web Wiz News
Company Information | Contact Web Wiz | Terms & Conditions | Privacy Policy

Prices exclude VAT unless otherwise stated - $, € prices shown as a guideline only
Web Wiz Ltd, Unit 10E Dawkins Road Ind. Est, Poole, Dorset, UK, BH15 4JD
Copyright ©2001-2012 Web Wiz - All rights reserved