57 lines
1.4 KiB
Markdown
57 lines
1.4 KiB
Markdown
|
---
|
||
|
id: 587d781c367417b2b2512ac4
|
||
|
title: Set the font-size of Paragraph Text
|
||
|
challengeType: 0
|
||
|
videoUrl: ''
|
||
|
localeTitle: قم بتعيين حجم خط نص الفقرة
|
||
|
---
|
||
|
|
||
|
## Description
|
||
|
<section id="description"> لا تقتصر خاصية <code>font-size</code> في CSS على العناوين ، بل يمكن تطبيقها على أي عنصر يحتوي على نص. </section>
|
||
|
|
||
|
## Instructions
|
||
|
<section id="instructions"> غيّر قيمة الخاصية <code>font-size</code> للفقرة إلى 16 بكسل لجعلها أكثر وضوحًا. </section>
|
||
|
|
||
|
## Tests
|
||
|
<section id='tests'>
|
||
|
|
||
|
```yml
|
||
|
tests:
|
||
|
- text: يجب أن يكون <code>font-size</code> علامة <code>p</code> الخاصة بك 16 بكسل.
|
||
|
testString: 'assert($("p").css("font-size") == "16px", "Your <code>p</code> tag should have a <code>font-size</code> of 16 pixels.");'
|
||
|
|
||
|
```
|
||
|
|
||
|
</section>
|
||
|
|
||
|
## Challenge Seed
|
||
|
<section id='challengeSeed'>
|
||
|
|
||
|
<div id='html-seed'>
|
||
|
|
||
|
```html
|
||
|
<style>
|
||
|
p {
|
||
|
font-size: 10px;
|
||
|
}
|
||
|
</style>
|
||
|
<p>
|
||
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
|
||
|
</p>
|
||
|
|
||
|
```
|
||
|
|
||
|
</div>
|
||
|
|
||
|
|
||
|
|
||
|
</section>
|
||
|
|
||
|
## Solution
|
||
|
<section id='solution'>
|
||
|
|
||
|
```js
|
||
|
// solution required
|
||
|
```
|
||
|
</section>
|