CSS Capability Question

Discussion in 'CSS' started by Sam Designs, Dec 2, 2007.

  1. #1
    Does CSS have the capability to do something along these lines:

    If the window size =< 800px, then blabla
    Else if the window size => etc.
     
    Sam Designs, Dec 2, 2007 IP
  2. qazu

    qazu Well-Known Member

    Messages:
    1,834
    Likes Received:
    62
    Best Answers:
    0
    Trophy Points:
    165
    #2
    No, CSS is a presentation language not a scripting languague. You'll need to use JScript or some other scripting language
     
    qazu, Dec 2, 2007 IP
  3. soulscratch

    soulscratch Well-Known Member

    Messages:
    964
    Likes Received:
    45
    Best Answers:
    0
    Trophy Points:
    155
    #3
    soulscratch, Dec 2, 2007 IP
  4. ChaosFoo

    ChaosFoo Peon

    Messages:
    232
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I'm not exactly sure what you are trying to do with your expressions, but I find that most of the time I can get good functionality to work using the min-width or max-width CSS Properties. These properties don't work in IE 6 though.

    What are you trying to do? There may be a different way to do it than to use CSS Expressions (which only work in IE) or min-width, max-width (which don't work in IE 6), that would be compatible with everything.
     
    ChaosFoo, Dec 3, 2007 IP