1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

multiple elements in 1 definition

Discussion in 'CSS' started by redhits, Jul 19, 2009.

  1. #1
    May i have multiple elements in the same definition .?!

    like

    box_left fieldset,box_center fieldset,box_right fileldset {
    width:500px; height:500px;
    }
     
    redhits, Jul 19, 2009 IP
  2. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #2
    Well, did you try it? Did you read the specs? How about trying a tutorial?

    You need to do some research on your own.

    gary
     
    kk5st, Jul 19, 2009 IP
  3. redhits

    redhits Notable Member

    Messages:
    3,023
    Likes Received:
    277
    Best Answers:
    0
    Trophy Points:
    255
    #3
    I didn't came here for sending me to read anything :(
     
    redhits, Jul 19, 2009 IP
  4. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #4
    So, you just came here to be a leech? You want somebody to do the work for you, without effort on your part?

    I did more work for you than you did for yourself. 1) I gave you a pragmatic test suggestion. 2) I gave you the exact section of the css2.1 specifications that describe exactly what you can and cannot do. 3) I gave you a link to a set of tutorials, because you asked a very basic question that implies you have a very limited knowledge base and could stand to do some learning.

    gary
     
    kk5st, Jul 20, 2009 IP
  5. Stomme poes

    Stomme poes Peon

    Messages:
    3,195
    Likes Received:
    136
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Keep those damn kids off your lawn, Gary! : )
     
    Stomme poes, Jul 20, 2009 IP
  6. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #6
    I don't mind kids on the lawn, but if one of them throws a chain on his bike and asks for help, I expect him to hang around, participate in the repair, and learn something. I neither expect nor appreciate his dumping the bike and expecting repairs without his getting his hands dirty.

    Unfortunately, there are clueless who, no matter how soundly beat about the head and shoulders with a clue-bat, never become clueful. In this case, we shall see.

    cheers,

    gary
     
    kk5st, Jul 20, 2009 IP
  7. JahRasta311

    JahRasta311 Peon

    Messages:
    201
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #7
    get off your high horse, gary. you're not a moderator here so quit acting like you're the police.
     
    JahRasta311, Jul 20, 2009 IP
  8. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #8
    Ah, I see you haven't yet taken the time to read the link I gave you.

    I suppose I should have given the OP on this thread another link to read, but judging by the first response it wouldn't have got read either.

    gary
     
    kk5st, Jul 20, 2009 IP
  9. JahRasta311

    JahRasta311 Peon

    Messages:
    201
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #9
    lol, hacker etiquette doesn't apply here, douche.
     
    JahRasta311, Jul 20, 2009 IP
  10. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #10
    :shrug: Good netiquette is applicable anywhere.
     
    kk5st, Jul 21, 2009 IP
  11. Stomme poes

    Stomme poes Peon

    Messages:
    3,195
    Likes Received:
    136
    Best Answers:
    0
    Trophy Points:
    0
    #11
    esr may be a raging crazed hippy nazi freak, but his How To Ask A Question absolutely applies to forums, especially forums where Nubi needs to ask Master Foo for instruction.

    Gary I need a list of those nonsensical answers you sometimes give when someone has one of those "my car makes a noise sometimes. It's a Toyota. What could it be?" questions. I'm not creative enough to think up good ones myself. I want ones that sound pretty realistic too.

    Damn kids. On my lawn. Okay in my case it's teenage junkies standing outside our window at 4am talking too loud because they're drunk : )

    Oh and for Christmas I would like a clue-bat. Actually for self-application sometimes.
     
    Stomme poes, Jul 21, 2009 IP
  12. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #12
    Ooh, where to start.

    Eric a socialist statist? He's an anarchist, if anything.

    True, true.

    I never give nonsensical answers (he said in high dudgeon).

    I didn't realize you lived in the MD5 section of Amsterdam.

    I'd wrap you one and Fed-Ex it today, but all mine appear to be defective. Sigh.

    cheers,

    gary
     
    kk5st, Jul 21, 2009 IP
  13. nonameperson

    nonameperson Peon

    Messages:
    58
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #13
    you can use multi-class or multi-id definitons, but that what you write is not correct at all, this is correct:

    
    .box_left fieldset,
    #box_center fieldset,
    .box_right fileldset {
    width:500px; height:500px;
    } 
    
    Code (markup):
     
    nonameperson, Jul 24, 2009 IP
  14. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #14
    Comma separated selectors may be on the same line.

    cheers,

    gary
     
    kk5st, Jul 24, 2009 IP
  15. nonameperson

    nonameperson Peon

    Messages:
    58
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #15
    not true, comma separators may be in multiple line!
     
    nonameperson, Jul 25, 2009 IP
  16. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #16
    Perhaps, were you to read the specs: §5.2.1 Grouping.

    On the chance English is not your mother tongue, may ≠ must.

    gary
     
    kk5st, Jul 25, 2009 IP
  17. Stomme poes

    Stomme poes Peon

    Messages:
    3,195
    Likes Received:
    136
    Best Answers:
    0
    Trophy Points:
    0
    #17
    And on the greater chance that Math is not your(nonameperson) mother tongue, ≠ means "not equal".

    They can be written either way.
     
    Stomme poes, Jul 27, 2009 IP