navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

Microsoft MVP

 

is there a limit?

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> Cascading Style Sheets >> is there a limit?
Page: [1]
 
mtfm

 

Posts: 424
Joined: 1/13/2006
From: Mesa, AZ
Status: offline

 
is there a limit? - 11/30/2006 17:37:49   
Just curious--

is there a predefined limit to how long a CSS file can be?

The one for my company's site is 4,000+ lines. :)
womble

 

Posts: 5594
Joined: 3/14/2005
From: Living on the edge
Status: offline

 
RE: is there a limit? - 11/30/2006 18:12:48   
It's more important the size of the file size of your CSS file.

< 10kb is ideal. >20kb is not wise.

_____________________________

~~ "A cruel god ain't no god at all" ~~
:)

(in reply to mtfm)
Tailslide

 

Posts: 6112
Joined: 5/10/2005
From: Out here on the raggedy edge
Status: online

 
RE: is there a limit? - 12/1/2006 2:24:02   
4,000+ !!! There's no technical limit to the length of a stylesheet although as Womble says, you really don't want too big a file just for bandwidth reasons. But 4000+ !! Forgive me, but that can't be very efficient use of CSS. One of the good things about CSS is that you can re-use rules all over the place to make your life easier.

If anyone gets the time then I've no doubt that could be rationalised - you can combine rules that have the same info in them like this:

#sidebar, #footer, #contents {whatever}


You never know it might save you some money!

_____________________________

"My strategy is so simple an idiot could have devised it"
Little Blue Plane Web Design | Blood, Sweat & Rust - A Land Rover restoration project

(in reply to womble)
jaybee

 

Posts: 14175
Joined: 10/7/2003
From: Berkshire, UK
Status: offline

 
RE: is there a limit? - 12/1/2006 7:11:21   
You can also split it out into more than one stylesheet.

One site where mine was getting a bit large, nowhere near that big mind you, I split it into layout and styles and called both sheets in from the page.

_____________________________

If it ain't broke..... fix it until it is.
:)

:)
GAWDS
Now where did I put that Doctype?

(in reply to Tailslide)
Nicole

 

Posts: 2843
Joined: 9/15/2004
From: Nambucca / Kempsey, Australia
Status: offline

 
RE: is there a limit? - 12/1/2006 22:44:57   
quote:

ORIGINAL: jaybee

You can also split it out into more than one stylesheet.

One site where mine was getting a bit large, nowhere near that big mind you, I split it into layout and styles and called both sheets in from the page.


Won't that still show up on the website optimizer's "total CSS size" though?

There's also the CSS Tweak that Womble posted about ages ago that compresses the styles for you.

_____________________________

:)

(in reply to jaybee)
Page:   [1]

All Forums >> Web Development >> Cascading Style Sheets >> is there a limit?
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts