67 lines
1.5 KiB
Markdown
67 lines
1.5 KiB
Markdown
---
|
|
id: 613e275749ebd008e74bb62e
|
|
title: Passo 8
|
|
challengeType: 0
|
|
dashedName: step-8
|
|
---
|
|
|
|
# --description--
|
|
|
|
Uma propriedade útil de um _SVG_ (gráficos vetoriais escaláveis) é o atributo `path` (caminho), que permite que a imagem seja dimensionada sem afetar a resolução da imagem resultante.
|
|
|
|
Atualmente, o `img` está assumindo que é o tamanho padrão, o que é muito grande. Para arrumar, dimensione a imagem usando o `id` como seletor e defina a largura `width` como `max(100px, 18vw)`.
|
|
|
|
# --hints--
|
|
|
|
Você deve usar o seletor `#logo` para direcionar o elemento `img`.
|
|
|
|
```js
|
|
assert.exists(new __helpers.CSSHelp(document).getStyle('#logo'));
|
|
```
|
|
|
|
Você deve dar à `img` uma `width` de `max(100px, 18vw)`.
|
|
|
|
```js
|
|
assert.equal(new __helpers.CSSHelp(document).getStyle('#logo')?.width, 'max(100px, 18vw)');
|
|
```
|
|
|
|
# --seed--
|
|
|
|
## --seed-contents--
|
|
|
|
```html
|
|
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<meta name="description" content="freeCodeCamp Accessibility Quiz practice project" />
|
|
<title>Accessibility Quiz</title>
|
|
<link rel="stylesheet" href="styles.css" />
|
|
</head>
|
|
<body>
|
|
<header>
|
|
<img id="logo" src="https://cdn.freecodecamp.org/platform/universal/fcc_primary.svg">
|
|
<h1>HTML/CSS Quiz</h1>
|
|
<nav></nav>
|
|
</header>
|
|
<main></main>
|
|
</body>
|
|
</html>
|
|
|
|
```
|
|
|
|
```css
|
|
body {
|
|
background: #f5f6f7;
|
|
color: #1b1b32;
|
|
font-family: Helvetica;
|
|
margin: 0;
|
|
}
|
|
|
|
--fcc-editable-region--
|
|
|
|
--fcc-editable-region--
|
|
|
|
```
|