This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes CSS files in an Application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "CSS files in an Application" Watch "CSS files in an Application" New topic

CSS files in an Application

Ravi Kiran Va
Ranch Hand

Joined: Apr 18, 2009
Posts: 2234


I am planning to write a CSS file , which is specific to my Module , which is consisting of 10 screens .

Is it good to have a Module per css or Application per css ??

Please share your ideas .

Save India From Corruption - Anna Hazare.
Eric Pascarello

Joined: Nov 08, 2001
Posts: 15376
Most sites will do a common css file that will have the core css in it. Means the styles that every page will use will be in there.

Some people create on CSS file for the other site, some will do the common css with individual files for the other pages.

It comes down to preference and file size.

I agree. Here's the link:
subject: CSS files in an Application
Similar Threads
unable to use more than 2 <bean:message. tags in jsp
Flex 3 :Is it good to have a FrontController per Module??
Java SE6 client for EJB - Error in lookup
struts 1.X Action vs Actionmappings
Spring context xml files