skip to Main Content
        .question-list .options {
            min-width: 240px;
        }

Max width property will apply to both( question-list .options ) or not ?

2

Answers


  1. max-width property will be applied to an element with class .options that is inside an element with class .question-list

    <div class="question-list"><div class="options">this element has max-width</div></div>
    
    Login or Signup to reply.
  2. min-width property will be applied to an element with class .options that is inside an element with class .question-list

    <div class="question-list"><div class="options">this element has been targeted</div></div>
    

    In order to target both .question-list and .options you should put comma between them:

    .question-list, .options {
        min-width: 240px;
    }
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search