CSS Syntax Question: select[class]

Discussion in 'HTML & Website Design' started by crumpelfungus, Mar 30, 2009.

  1. #1
    OK, so I am not an absolute beginner, but every now and then it feels like it.

    This morning, I was reviewing somebody else's CSS code and came across the following bracket syntax:


    .form_description[class]
    {
    	display:block;
    }
    
    
    select.select[class]
    {
    . . .
    Code (markup):
    Could anyone tell me what the bracketed stuff ([class]) does?

    Where can I find out more about this?

    Thanks.
     
    crumpelfungus, Mar 30, 2009 IP
  2. LDews

    LDews Peon

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    That's a really weird syntax, personally I've never seen it before. Can you Pm me the url of the site you saw it on please? I am curious to check it :)
     
    LDews, Mar 30, 2009 IP
  3. diwebdesign uk

    diwebdesign uk Peon

    Messages:
    48
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    diwebdesign uk, Mar 30, 2009 IP