SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    My precious!!! astericks's Avatar
    Join Date
    Mar 2002
    Location
    Vancouver, BC
    Posts
    1,971
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Using CSS for whole website

    The title is a bit misleading. Lemme explain.

    I wanna use css styling for every single tag for my website. For font tags, H1-H6, links etc etc. and it will act like a global controller.

    Is it better to cram up all the codes in a big css file or creating small files for each or a group of tags and then apply them to specific section of my pages [e.g <span class=".stylename"> ]?

    The second option seems a bit too bulky and troublesome. The first one looks perfect, but I'm just wondering that it might cause unnecessary trouble later on.

    Advise plz, since the furthest I've been with the use of css is :
    A:link
    A:active
    a:visited
    A:hover

    Thanks for any help.

    asT.
    Last edited by astericks; Jun 19, 2002 at 02:17.

  2. #2
    Grumpy Mole Man Skunk's Avatar
    Join Date
    Jan 2001
    Location
    Lawrence, Kansas
    Posts
    2,067
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If you want to apply a specific font (e.g Verdana) to your whole site at once, just use this:
    Code:
    body {
        font-family: verdana, helvetica, sans-serif;
    }
    That works for most browsers, NS4 will forget to apply it to table cells though so you'll need to make a seperate declaration for <td>.

  3. #3
    SitePoint Evangelist
    Join Date
    Oct 2001
    Posts
    439
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    generally it is good to use 1 big file with all your CSS there.....

    but just make sure that you comment it well so that you know what section does, makes it easier to deal with later.......

  4. #4
    SitePoint Enthusiast rreames's Avatar
    Join Date
    Jun 2002
    Location
    Iowa
    Posts
    33
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    A couple things to keep in mind: use a basic, simple NN4 compatible style sheet for older non-standard browsers. Then use the "@import" to add a fancier style sheet for the newer standard compliant browsers. Then if you want, use the "alternate stylesheet" function to give Mozilla/Gecko based browsers the ability to choose other styles.

    I still can't figure out why IE still hasn't put in that simple feature.

    These things are not neccessary but are nice for the end-user.

    Example in progress reames.org
    Apathetic Activist.
    reames.org

  5. #5
    My precious!!! astericks's Avatar
    Join Date
    Mar 2002
    Location
    Vancouver, BC
    Posts
    1,971
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thx skunk...i know aobut the codes...i was just wondering about the issues related to them.

    but i guess best tihng to do os put them at work and see if they work out fine or not.


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
  •