--- id: bad87fee1348bd9aede08845 title: Create a Custom Heading challengeType: 0 videoUrl: '' localeTitle: '' --- ## Description
سنجعل عنوانًا بسيطًا لتطبيق Cat Photo App من خلال وضع العنوان وصور الاسترخاء في نفس الصف. تذكر ، يستخدم Bootstrap نظام شبكة استجابة ، مما يجعل من السهل وضع العناصر في صفوف وتحديد العرض النسبي لكل عنصر. يمكن تطبيق معظم طبقات Bootstrap على عنصر div . عيّن الصورة الأولى والعنصر h2 عنصر <div class="row"> . ضع العنصر h2 في <div class="col-xs-8"> وصورتك في <div class="col-xs-4"> بحيث تكون على نفس السطر. لاحظ كيف أصبحت الصورة الآن الحجم المناسب لتناسب النص؟
## Instructions
## Tests
```yml tests: - text: يجب أن h2 عنصر h2 وعنصر img العلوي معًا داخل عنصر div مع row . testString: 'assert($("div.row:has(h2)").length > 0 && $("div.row:has(img)").length > 0, "Your h2 element and topmost img element should both be nested together within a div element with the class row.");' - text: '' testString: 'assert($("div.col-xs-4:has(img)").length > 0 && $("div.col-xs-4:has(div)").length === 0, "Nest your topmost img element within a div with the class col-xs-4.");' - text: ضع العنصر h2 في div باستخدام الفئة col-xs-8 . testString: 'assert($("div.col-xs-8:has(h2)").length > 0 && $("div.col-xs-8:has(div)").length === 0, "Nest your h2 element within a div with the class col-xs-8.");' - text: تأكد من أن كل عنصر من عناصر div لديه علامة إغلاق. testString: 'assert(code.match(/<\/div>/g) && code.match(/
/g).length === code.match(/
div elements has a closing tag.");' ```
## Challenge Seed
```html

CatPhotoApp

A cute orange cat lying on its back. Three kittens running towards the camera.

Things cats love:

  • cat nip
  • laser pointers
  • lasagna

Top 3 things cats hate:

  1. flea treatment
  2. thunder
  3. other cats
```
## Solution
```js // solution required ```