css question...?

Discussion in 'CSS' started by tptnyc, Sep 8, 2007.

  1. #1
    From Newbie:
    I see so many css codings in stylesheet-file, I am wondering which codings controls which page?
    Is there any particular list of codings order or pattern that it must be written in that sequence only from top to bottom, I mean? Its e-commerce website.
     
    tptnyc, Sep 8, 2007 IP
  2. mikebrad0927

    mikebrad0927 Peon

    Messages:
    266
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I don't think it matters what order it's written in, but you need to keep it organized.

    Also, css codings don't control pages, they control tags like <div>, <span>, and other attributes like font sizes, colors, etc.
     
    mikebrad0927, Sep 8, 2007 IP
  3. GWiz

    GWiz Peon

    Messages:
    359
    Likes Received:
    17
    Best Answers:
    0
    Trophy Points:
    0
    #3
    The order doesn't matter unless you have 2 items that affect the same thing. For example you have this:
    #container {
    width:500px;
    }
    Code (markup):
    and then somewhere BELOW it, you have another one like this:
    #container {
    width:800px;
    }
    Code (markup):
    So basically both have different widths, although the LAST one will be applied, not the first one. So it'll use 800px. That's the only thing you should be aware of.
     
    GWiz, Sep 9, 2007 IP
  4. tptnyc

    tptnyc Peon

    Messages:
    764
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Alright, then - how to figure out which css-codings is controlling tags or fonts of which page?
     
    tptnyc, Sep 9, 2007 IP
  5. c4cyber

    c4cyber Well-Known Member

    Messages:
    1,040
    Likes Received:
    27
    Best Answers:
    1
    Trophy Points:
    150
    #5
    usually, it's good to use comment in any kind of file(css, php or js)..to know which part belong to which module or page
     
    c4cyber, Sep 9, 2007 IP
  6. aussieone

    aussieone Active Member

    Messages:
    249
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    78
    #6
    I could sit here typing out stuff about divs and classes, but better you just go get the best impression from the pro's http://www.w3schools.com/css/
     
    aussieone, Sep 9, 2007 IP
  7. tptnyc

    tptnyc Peon

    Messages:
    764
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Thank you aussieone. It really answers many of my questions. Great!
     
    tptnyc, Sep 9, 2007 IP
  8. soulscratch

    soulscratch Well-Known Member

    Messages:
    964
    Likes Received:
    45
    Best Answers:
    0
    Trophy Points:
    155
    #8
    soulscratch, Sep 9, 2007 IP