Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

exercícios finalizados #9

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added .DS_Store
Binary file not shown.
1 change: 1 addition & 0 deletions exercicio1/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>CSS - prática guiada 1</title>
<link rel="stylesheet" href="style.css">
</head>

<body>
Expand Down
27 changes: 27 additions & 0 deletions exercicio1/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
/* Trabalhando com ID - Ususamos a # (tralha) antes do id. */
#titulo-importante{
background-color: blue;
color: white;
}

/* Trabalhando com Tags - Colocamos direto o nome da tag. */
h2{
background-color: yellow;
}

section{
background-color: green;
}

footer{
background-color: black;
}

/* Trabalhando com Classes - Usamos o . (ponto) antes de cada classe. */
.titulo-secao{
color: white;
}

.titulo-pouco-importante{
color: white;
}
21 changes: 17 additions & 4 deletions exercicio2/style.css
Original file line number Diff line number Diff line change
@@ -1,22 +1,35 @@
/* Afastando das bordas usando padding. */
.longe-bordas{
background-color: #FFA6A9;
padding: 0 50px;
}


/* Afastando de outros elementos usando o margin */
.afastado{
background-color: #77C0ED;
margin: 0 20px;
}

/* Deixando o elemento alto com height (altura) */
.alto{
background-color: #C3E887;
height: 300px;
}

/* Deixando o elemento largo com width (largura) */
.largo{
background-color: #FFE396;
background-color: #FFE396;
width: 500px;
}

/* Colocando borda usando o border */
.bordado{
background-color: #AF9BCC;
border: 1px solid black;
}

/* Sumindo com o elemento usando display: none; */
.sumido{

}
display: none;
}

23 changes: 16 additions & 7 deletions exercicio3/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,33 @@
padding: 0;
margin: 0;
}

header{

}

main{
font-family: Helvetica;
}

section{
float: left;
/*float é uma propriedade que permite deixar elementos à direita ou à esquerda da tela. Não costuma ser usado. Aqui, é usado apenas para ilustrar diferenças.*/
width: 840px;
padding: 40px;
width: 60vw;
padding: 1rem;
background-color: brown;
color: white
}

aside{
float:right;
float: right;
/*float é uma propriedade que permite deixar elementos à direita ou à esquerda da tela. Não costuma ser usado. Aqui, é usado apenas para ilustrar diferenças.*/
padding: 20px;
width: 340px;
padding: 5%;
width: 25%;
background-color: blue;
color: white
}

article{
margin: 10px 0;
}
margin: 1rem 0;
}
43 changes: 43 additions & 0 deletions fixacao/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
*{
margin: 0;
padding: 0;
}

header{
height: 40px;
padding: 10px;
background-color: orange;
color: white;
border-bottom: 5px solid black;
}

main{
margin: 15px;
padding: 20px 30px;
width: 90vw;
height: 80vh;

}

article{
margin: 25px;
}

h2{
font-family: Arial;
}

p{
font-family: Helvetica;
}

.destaque{
color: orange;
}

footer{
height: 40px;
padding: 10px;
background-color: black;
color: white;
}