freeCodeCamp/curriculum/challenges/portuguese/03-front-end-libraries/bootstrap/house-our-page-within-a-boo...

1.6 KiB

id title challengeType videoUrl localeTitle
bad87fee1348bd9aec908746 House our page within a Bootstrap container-fluid div 0 Abrigue nossa página dentro de um div de container-fluido de Bootstrap

Description

Agora, vamos garantir que todo o conteúdo da sua página seja responsivo para dispositivos móveis. Vamos aninhar seu elemento h3 dentro de um elemento div com a classe container-fluid .

Instructions

Tests

tests:
  - text: Seu elemento <code>div</code> deve ter a classe <code>container-fluid</code> .
    testString: 'assert($("div").hasClass("container-fluid"), "Your <code>div</code> element should have the class <code>container-fluid</code>.");'
  - text: Certifique-se de que cada um dos seus elementos <code>div</code> tenha uma tag de fechamento.
    testString: 'assert(code.match(/<\/div>/g) && code.match(/<div/g) && code.match(/<\/div>/g).length === code.match(/<div/g).length, "Make sure each of your <code>div</code> elements has a closing tag.");'
  - text: Aninhe seu elemento <code>h3</code> dentro de um elemento <code>div</code> .
    testString: 'assert($("div").children("h3").length >0, "Nest your <code>h3</code> element inside a <code>div</code> element.");'

Challenge Seed

<h3 class="text-primary text-center">jQuery Playground</h3>

Solution

// solution required