SitePoint Sponsor

User Tag List

Results 1 to 13 of 13
  1. #1
    Currently Occupied; Till Sunda Andrew-J2000's Avatar
    Join Date
    Aug 2001
    Location
    London
    Posts
    2,475
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    external stylesheet names

    I was wondering what most people call their style sheets when they include them in pages.

    eg if you use the same name as the page their including them in or if you have some default names that you specify.

    ie

    main.css
    index.css
    css.css

    also which ones would you rank higher that the other. Say you have main.css is that more important to include than index.css etc

  2. #2
    + platinum's Avatar
    Join Date
    Jun 2001
    Location
    Adelaide, Australia
    Posts
    6,441
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I use something like

    *insertnamehere*styles.css

    or default.css with other sheets given a name to represent what they do

  3. #3
    Currently Occupied; Till Sunda Andrew-J2000's Avatar
    Join Date
    Aug 2001
    Location
    London
    Posts
    2,475
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    do you have some examples, as im building a templating system in php, and was wondering what people use

  4. #4
    Perl/Mason Guru Flawless_koder's Avatar
    Join Date
    Feb 2002
    Location
    Gatwick, UK
    Posts
    1,206
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I don't think i'd bother calling a stylesheet *name*_styles

    Flawless
    ---=| If you're going to buy a pet - get a Shetland Giraffe |=---

  5. #5
    SitePoint Wizard Ian Glass's Avatar
    Join Date
    Oct 2001
    Location
    Beyond yonder
    Posts
    2,384
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I usually use styles.css, mostly. It really doesn't matter, to me, though--sometimes, I use pootytang.css... :-0

    Also, you should try to keep all your rules in one file, as opposed to using a bunch of included files. 'Least I thought I read that somewhere...

    ~~Ian

  6. #6
    SitePoint Wizard
    Join Date
    Jul 2001
    Location
    The Netherlands
    Posts
    2,617
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ditto on the above, styles.css is the standard name I use for my CSS-file.

  7. #7
    We like music. weirdbeardmt's Avatar
    Join Date
    May 2001
    Location
    Channel Islands Girth: Footlong
    Posts
    5,882
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I uses styles.css or nameofsite.css

    Can't see that it makes a scrap of difference though, so you could use "filewhichmakesmysiteallniceandpurty.css" if you wanted (though I wouldn't bother).
    I swear to drunk I'm not God.
    Matt's debating is not a crime
    Hint: Don't buy a stupid dwarf Clicky

  8. #8
    busy Steelsun's Avatar
    Join Date
    Mar 2001
    Location
    Houston, Tejas; Future Capital of the World
    Posts
    2,474
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Since I usually use the same sheet throughout the site I use sitename.css, where sitename is the name (without the dotcom) of the site. (or instance If I did sitepoint.com it would be sitepoint.css or possibly even sp.css as I like to abbreviate).

    Occasionally I'll have a second css file for a specific area of the site, like one I'm redesigning for a client where he has a ton of technical info pages. For that section I named the sheet techarea.css

    Also for a second sheet I've also called it alternate.css and I have used main.ccc or site.css as the main sheets in the past.
    Brian Poirier
    SunStockPhoto: Stock Photos, Fine Art Photos, Event Photography

  9. #9
    Currently Occupied; Till Sunda Andrew-J2000's Avatar
    Join Date
    Aug 2001
    Location
    London
    Posts
    2,475
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    cheers everyone, i will definately add the name of the site as a style sheet name. However i dont think i will be adding pootytang.css in a rush lmfao.

    Anyway i have decided to add a structured xml file to be read from in order of preference and modify that with another function which would come in handy when i get to working on some other projects i have coming up.

  10. #10
    @russellg RussellG's Avatar
    Join Date
    Jun 2000
    Location
    Gold Coast, Queensland
    Posts
    449
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Just lately I have have two style sheets, one is called tags.css and the other is classes.css

    tags contains things like body, h1, h2 etc. While classes contains... classes (.text, .weird, etc).

    I used to use master.css or nameofsite.css.
    russell.cz.cc - coming soon (I promise!)

  11. #11
    Super Ninja Monkey Travis's Avatar
    Join Date
    Dec 2001
    Location
    Sioux City, Iowa
    Posts
    691
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I usually do style.css and put all the CSS for every part of the site in that one file. Ever since I started using CSS (can't believe I ever went without it ) I have used that name.
    Travis Watkins - Hyperactive Coder
    My Blog: Realist Anew
    Projects: Alacarte - Gnome Menu Editor

  12. #12
    SitePoint Member
    Join Date
    Jul 2002
    Location
    Perth Western Australia
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Because my site get a "re-design" job every 6 months or so, I call the css by the version number of my design. This way, both old and new designs can exist at the same time.

    e.g:
    tn3v2.css
    tn3v3.css

  13. #13
    Non-Member Siltrince's Avatar
    Join Date
    Aug 2001
    Location
    Belgium
    Posts
    304
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I just name it stylefile.css , sounds good doesn't it


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •