Skip to content
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
36 changes: 36 additions & 0 deletions TPSI/branda_rachele/branda_esercizio_css_49.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
.container{
margin: auto;
width: 50vw;
height: 50vh;
display: grid;
grid-template-columns: repeat(6, 1fr);
grid-template-rows: repeat(6, 1fr);
}

.item{
padding: 10px;
border: 1px solid red;
display: flex;
justify-content: center;
align-items: center;
padding: 20px;
font-weight: bold;
}

.a{
grid-column: 2 / 5;
}

.b{
grid-row: 2 / 5;
}

.c{
grid-column: 2 / 5;
grid-row: 2 / 5;
}

.d{
grid-column: 5 / 7;
grid-row: 5 / 8;
}
37 changes: 37 additions & 0 deletions TPSI/branda_rachele/branda_esercizio_css_49.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="stylesheet" href="branda_esercizio_css_49.css">
</head>
<body>
<div class="container">
<div class="item a">1</div>
<div class="item">1</div>
<div class="item">1</div>
<div class="item b">1</div>
<div class="item c">1</div>
<div class="item">1</div>
<div class="item">1</div>
<div class="item">1</div>
<div class="item">1</div>
<div class="item">1</div>
<div class="item">1</div>
<div class="item">1</div>
<div class="item">1</div>
<div class="item">1</div>
<div class="item">1</div>
<div class="item d">1</div>
<div class="item">1</div>
<div class="item">1</div>
<div class="item">1</div>
<div class="item">1</div>
<div class="item">1</div>
<div class="item">1</div>
<div class="item">1</div>
<div class="item">1</div>
</div>
</body>
</html>
12 changes: 12 additions & 0 deletions TPSI/branda_rachele/branda_esercizio_css_50.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
.grid2 div {
background: #333;
color: white;
display: flex;
justify-content: center;
}
.grid2 {
display: grid;
grid-template-columns: repeat(3, 100px);
grid-template-rows: repeat(2, 80px);
gap: 10px;
}
15 changes: 15 additions & 0 deletions TPSI/branda_rachele/branda_esercizio_css_50.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
!DOCTYPE html>
<html lang="it">

<head>
<title>css_50</title>
<meta http-equiv="refresh" content="10">
<link rel="stylesheet" href="branda_esercizio_css_50.css" type="text/css" />
</head>
<body>
<div class="grid2">
<div>A</div><div>B</div><div>C</div>
<div>D</div><div>E</div><div>F</div>
</div>
</body>
</html>
21 changes: 21 additions & 0 deletions TPSI/branda_rachele/branda_esercizio_css_51.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
.a {
grid-column: 1 / 3;
}
.item {
background-color: #646361;
color: white;
padding: 10px;
border-radius: 6px;
align-content: center;
}

.b {
grid-column-start: 3;
grid-row: 1 / 3;
}
.grid-container {
display: grid;
grid-template-columns: 1fr 1fr 100px;
grid-template-rows: 60px 60px;
gap: 10px;
}
17 changes: 17 additions & 0 deletions TPSI/branda_rachele/branda_esercizio_css_51.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<!DOCTYPE html>
<html lang="it">
<head>
<meta charset="UTF-8">
<meta name="tabella immagini" content="tabella, immagini">
<link rel="stylesheet" href="branda_esercizio_css_51.css" type="text/css" />
<title>es 51</title>
</head>
<body>
<div class="grid-container">
<div class="item a">A</div>
<div class="item b">B</div>
<div class="item">C</div>
<div class="item">D</div>
</div>
</body>
</html>
26 changes: 26 additions & 0 deletions TPSI/branda_rachele/branda_esercizio_css_52.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
.e { grid-column: 1 / 3; }
.a {
grid-column: 1 / 3;
}.grid4 {
display: grid;
grid-template-columns: 1fr 2fr;
grid-auto-rows: 60px;
gap: 10px;
}
.grid4 div {
background: #333;
color: white;
display: flex;
justify-content: center;
align-items: center;
}


.b {
grid-column: 3 / 5;
}

.d {
grid-row-start: 2;
grid-column: 2 / 5;
}
18 changes: 18 additions & 0 deletions TPSI/branda_rachele/branda_esercizio_css_52.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<!DOCTYPE html>
<html lang="it">
<head>
<meta charset="UTF-8">
<meta name="tabella immagini" content="tabella, immagini">
<link rel="stylesheet" href="branda_esercizio_css_52.css" type="text/css" />
<title>es 52</title>
</head>
<body>
<div class="grid-container">
<div class="item a">A</div>
<div class="item b">B</div>
<div class="item">C</div>
<div class="item d">D</div>
<div class="item e">E</div>
</div>
</body>
</html>
28 changes: 28 additions & 0 deletions TPSI/branda_rachele/branda_esercizio_css_53.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@


.content {
background: #333; color: white;
}
.sidebar2 {
background: #ccc;
}

.sidebar {
background: #333; color: white;
}

.header, .footer {
grid-column: 1 / 4;
background: #999;
}
.grid5 {
display: grid;
grid-template-columns: 1fr 2fr 1fr;
grid-template-rows: auto auto auto;
gap: 10px;
background: #eee;
}
.grid5 > div {
padding: 10px;
border-radius: 5px;
}
18 changes: 18 additions & 0 deletions TPSI/branda_rachele/branda_esercizio_css_53.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<!DOCTYPE html>
<html lang="it">
<head>
<meta charset="UTF-8">
<meta name="tabella immagini" content="tabella, immagini">
<link rel="stylesheet" href="branda_esercizio_css_53.css" type="text/css" />
<title>es 53</title>
</head>
<body>
<div class="grid-container">
<div class="item area-h">Header</div>
<div class="item area-s">Sidebar</div>
<div class="item area-m">Content <br> More content than we had before so this column is now quite tall. </div>
<div class="item area-s2">Sidebar 2</div>
<div class="item area-f">Footer</div>
</div>
</body>
</html>
31 changes: 31 additions & 0 deletions TPSI/branda_rachele/branda_esercizio_css_54.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@

.grid6 > div {
padding: 10px;
border-radius: 5px;
}
.header {
grid-column: 2 / 3;
background: #999;
}


.footer {
grid-column: 1 / 3;
background: #999;
}
.grid6 {
display: grid;
grid-template-columns: 1fr 2fr;
grid-template-rows: auto auto auto;
gap: 10px;
background: #eee;
}
.sidebar {
grid-row: 2 / 3;
background: #333; color: white;
}
.content {
grid-column: 2 / 3;
grid-row: 2 / 3;
background: #333; color: white;
}
18 changes: 18 additions & 0 deletions TPSI/branda_rachele/branda_esercizio_css_54.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
@@ -0,0 +1,17 @@
<!DOCTYPE html>
<html lang="it">
<head>
<meta charset="UTF-8">
<meta name="tabella immagini" content="tabella, immagini">
<link rel="stylesheet" href="branda_esercizio_css_54.css" type="text/css" />
<title>es 54</title>
</head>
<body>
<div class="grid-container">
<div class="item area-h">Header</div>
<div class="item area-s">Sidebar</div>
<div class="item area-m">Content <br> More content than we had before so this column is now quite tall. </div>
<div class="item area-f">Footer</div>
</div>
</body>
</html>