Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > single or multiple CSS files

Reply
Thread Tools

single or multiple CSS files

 
 
Carolyn Marenger
Guest
Posts: n/a
 
      03-03-2005
Hey everyone, I am looking for your thoughts and opinions.

Is it preferable to have one css file containing all the style information
or break it up into multiple imported files for different types of
formatting. For example, one file for page layout related items and
another for text formattion?

I have seen different combinations on different pages, and am wondering
which people find is easier to maintain. Being from a coding background
myself, I like to keep related things together, and move the rest to a
different file, or files. Also being from a coding background, I'd prefer
to learn by reading about others mistakes than duplicating them myself.

Thanks, Carolyn
 
Reply With Quote
 
 
 
 
Lauri Raittila
Guest
Posts: n/a
 
      03-03-2005
in alt.html, Carolyn Marenger wrote:
> Hey everyone, I am looking for your thoughts and opinions.


Also in ciwas. Don't multipost. See my reply there. It is not perfect, as
I stopped writing it on moment I saw this.

--
Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts>
Utrecht, NL.
 
Reply With Quote
 
 
 
 
Disco Octopus
Guest
Posts: n/a
 
      03-03-2005
Carolyn Marenger wrote :
> Hey everyone, I am looking for your thoughts and opinions.
>
> Is it preferable to have one css file containing all the style information
> or break it up into multiple imported files for different types of
> formatting. For example, one file for page layout related items and
> another for text formattion?
>
> I have seen different combinations on different pages, and am wondering
> which people find is easier to maintain. Being from a coding background
> myself, I like to keep related things together, and move the rest to a
> different file, or files. Also being from a coding background, I'd prefer
> to learn by reading about others mistakes than duplicating them myself.
>
> Thanks, Carolyn



I think it depends on what you are trying to accomplish....

As I have some sites that use the same layout, but different colours,
banners, images, I use two style sheets.

one for the layout of the pages, and the other for the colour.

eg... stylelayoutA.css contains things like.....

..leftmenu {width:100px;}
..topbanner {height:25px;position:absolute;top:0;left;0;width: 100%;}
p {font-family:sans-serif;font-size:.9em;}

eg... stylebrandingXYZ.css contains things like.....

..leftmenu {background-colour:blue;}
..topbanner {background-image:url(......);}
p {color:green;}

This way, all my clients may use the same layout style, but they can
brand it to whatever they like.

--
eat beef jerky

 
Reply With Quote
 
Andy Dingley
Guest
Posts: n/a
 
      03-04-2005
It was somewhere outside Barstow when Carolyn Marenger
<(E-Mail Removed)> wrote:

>Is it preferable to have one css file containing all the style information
>or break it up into multiple imported files for different types of
>formatting.


(IMHO) Both. One <link> element, but @imports inside this CSS file
to join the modules. The referenced CSS document might just be called
"main.css" and only the imported ones get names like
"foocustomer_menu_verypinklook_christmasspecial.cs s"

Some browser somewhere will break. I don't care.
 
Reply With Quote
 
Carolyn Marenger
Guest
Posts: n/a
 
      03-04-2005
On Thu, 03 Mar 2005 22:03:50 +0100, Lauri Raittila wrote:

> in alt.html, Carolyn Marenger wrote:
>> Hey everyone, I am looking for your thoughts and opinions.

>
> Also in ciwas. Don't multipost. See my reply there. It is not perfect, as
> I stopped writing it on moment I saw this.


Yes it was. Sorry to offend you. I did see the reply there, and you had
some valid points, which I will reply to there. I am new to these two
newsgroups, but not to newsgroups. The others I frequent, don't object to
crossposting - when the topic is relevant to both (or all) newsgroups.
CSS being related to HTML, I followed that guideline. I will keep your
preference in mind next time.

Carolyn
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
resolve single line with multiple items into mutliple lines, single items ela Perl Misc 12 04-06-2009 06:47 PM
multiple web applications - single webservice - multiple databases Philip Gray ASP .Net Web Services 0 08-25-2005 09:25 AM
Text files read multiple files into single file, and then recreate the multiple files googlinggoogler@hotmail.com Python 4 02-13-2005 05:44 PM
ASP.NET multiple users/ single class files =?Utf-8?B?anNhbGU=?= ASP .Net 7 12-09-2004 09:37 AM
Multiple *.ascx files with a single *.ascx.cs in VS.NET 2003 Holger (David) Wagner ASP .Net 2 07-03-2004 09:23 AM



Advertisments