59 lines
1.4 KiB
Markdown
59 lines
1.4 KiB
Markdown
---
|
|
id: bad87fee1348bd9aec908847
|
|
title: Split Your Bootstrap Row
|
|
challengeType: 0
|
|
videoUrl: ''
|
|
localeTitle: ''
|
|
---
|
|
|
|
## Description
|
|
<section id="description"> الآن لدينا صف Bootstrap ، دعنا نقسمه إلى عمودين لإيواء عناصرنا. قم <code>div</code> عنصرين <code>div</code> داخل صفك ، كلاهما بـ <code>col-xs-6</code> . </section>
|
|
|
|
## Instructions
|
|
<section id="instructions">
|
|
</section>
|
|
|
|
## Tests
|
|
<section id='tests'>
|
|
|
|
```yml
|
|
tests:
|
|
- text: Nest two <code>div class="col-xs-6"</code> within <code>div class="row"</code> element.
|
|
testString: 'assert($("div.row > div.col-xs-6").length > 1, "Nest two <code>div class="col-xs-6"</code> elements within your <code>div class="row"</code> element.");'
|
|
- text: تأكد من أن جميع عناصر <code>div</code> لديك علامات إغلاق.
|
|
testString: 'assert(code.match(/<\/div>/g) && code.match(/<div/g) && code.match(/<\/div>/g).length === code.match(/<div/g).length, "Make sure all your <code>div</code> elements have closing tags.");'
|
|
|
|
```
|
|
|
|
</section>
|
|
|
|
## Challenge Seed
|
|
<section id='challengeSeed'>
|
|
|
|
<div id='html-seed'>
|
|
|
|
```html
|
|
<div class="container-fluid">
|
|
<h3 class="text-primary text-center">jQuery Playground</h3>
|
|
<div class="row">
|
|
|
|
|
|
</div>
|
|
</div>
|
|
|
|
```
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</section>
|
|
|
|
## Solution
|
|
<section id='solution'>
|
|
|
|
```js
|
|
// solution required
|
|
```
|
|
</section>
|