Skip to content

Commit

Permalink
Capítulo 16 Aula 7 – Bordas decoradas
Browse files Browse the repository at this point in the history
  • Loading branch information
DevDecfalter committed Apr 18, 2024
1 parent 6107a31 commit aa93501
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 0 deletions.
Binary file added Exercícios/modulo-02/ex021/borda.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
49 changes: 49 additions & 0 deletions Exercícios/modulo-02/ex021/caixa03.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
<!DOCTYPE html>
<html lang="pt-br">

<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="author" content="Brian Muniz / Aluno do Curso Em Vídeo">
<title> Borda Personalizada</title>
<style>
h1 {
border: 20px solid black;
padding: 10px;
border-image: url('borda.png') 20 repeat;
}
</style>
</head>

<body>
<h1>Teste de Borda</h1>
</body>

</html>

<!--
Capítulo 16 Aula 7 – Bordas decoradas - 17/04/2024
Nesta aula foi visto as propriedades:
border-image-source, border-image-slice e bordei-image-repeat
border-image-source = Imagem que vai ser utilizada na borda
border-image-slice = é o corte das imagens (ou até memso podemos chamar de espaçamento)
border-image-repeat = usado para repetir a imagem afim de melhorar a aparência
Simplificação
Sem Shorthand:
border-image-source: url('borda.png');
border-image-slice: 20;
border-image-repeat: repeat;
Com Shorthand:
border-image: url('borda.png') 20 repeat;
Podemos usar o GIMP para desenhar a borda, como foi feito neste exercício, ou pegar a imagem na internet
-->

0 comments on commit aa93501

Please sign in to comment.