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

 

style sheets

 
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 >> style sheets
Page: [1]
 
Brandon

 

Posts: 431
Joined: 7/13/2004
From: Indiana, US
Status: offline

 
style sheets - 8/10/2005 15:38:18   
Ok, as you know from my last post I'm working on cleaning up one of the sites I’m working on...getting ride of a lot of code....and using more CSS. My question is how long can one of these style sheets be....I mean I keep finding more and more that I can do with CSS and my sheet keeps getting longer and longer...Is there a point where it can be to long?

_____________________________

~ Brandon
womble

 

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

 
RE: style sheets - 8/10/2005 16:27:03   
Probably the main factor is the size of the resulting file. The site I'm currently working on, the main css file is up to around 850 lines long, around 25kb filesize, though I know I've got a lot of duplication in there that I need to take out. Trying it out on the server it's a little slow loading, so I suspect that I need to trim it a little. Not sure what the maximum recommended size is though.

_____________________________

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

(in reply to Brandon)
Tailslide

 

Posts: 5999
Joined: 5/10/2005
From: Out here on the raggedy edge
Status: offline

 
RE: style sheets - 8/10/2005 16:38:10   
I've seen stylesheets that are thousands of lines long!!

You should try to keep it reasonable though!

Edit: just checked - most of mine are about 4-6kb each and I sometimes have more than one on a site.


_____________________________

"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)
womble

 

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

 
RE: style sheets - 8/10/2005 16:49:24   
quote:

I sometimes have more than one on a site.

Current one I have one main stylesheet with all the layout and styling and then about 12 other alternate ones that control text size and background colour that are only a couple of lines long and import the default stylesheet. Some people use separate stylesheets for the layout and styling also.

_____________________________

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

(in reply to Tailslide)
Page:   [1]

All Forums >> Web Development >> Cascading Style Sheets >> style sheets
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