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
28 changes: 28 additions & 0 deletions TPSI/dalipi_andi/dalipi_esercitazione_css_44.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
body {
font-family: Arial, sans-serif;
display: flex;
justify-content: center;
margin-top: 100px;
background-color: #f9f9f9;
}

.navbar {
display: flex;
gap: 80px;
}

.navbar button {
background-color: #2d6ca2;
color: white;
border: none;
padding: 15px 25px;
border-radius: 10px;
font-size: 16px;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
cursor: pointer;
transition: background-color 0.3s ease;
}

.navbar button:hover {
background-color: #1e4e79;
}
16 changes: 16 additions & 0 deletions TPSI/dalipi_andi/dalipi_esercitazione_css_44.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<!DOCTYPE html>
<html lang="it">
<head>
<meta charset="UTF-8">
<title>Esercizio CSS 44</title>
<link rel="stylesheet" href="dalipi_esercitazione_css_44.css">
</head>
<body>
<div class="navbar">
<button>Home</button>
<button>About Us</button>
<button>Our Products</button>
<button>Contact Us</button>
</div>
</body>
</html>
33 changes: 33 additions & 0 deletions TPSI/dalipi_andi/dalipi_esercitazione_css_45.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
body {
font-family: Arial, sans-serif;
}

.container {
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
display: flex;
width: 70%;
padding: 8px;
border: #5e5e5e solid 1px;
border-radius: 2px;
flex-direction: row;
align-items: stretch;
gap: 10px;
}

.box {
flex: 1;
background-color: #476b98;
border: 1px #6dabba solid;
border-radius: 10px;
padding: 10px;
color: #fff;
font-size: 1.4em;
line-height: 1.8;
box-sizing: border-box;
word-wrap: break-word;
}


20 changes: 20 additions & 0 deletions TPSI/dalipi_andi/dalipi_esercitazione_css_45.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="dalipi_esercitazione_css_45.css" />
<title>ESERCIZIO CSS 44</title>
</head>
<body>
<div class="container">
<div class="box">I am small</div>
<div class="box">I have more content than the very small item.</div>
<div class="box">
I have lots of content. So much content that I don't know where it is
all going to go. I'm glad that CSS is pretty good at dealing with
situations where we end up with more words than expected!
</div>
</div>
</body>
</html>
27 changes: 27 additions & 0 deletions TPSI/dalipi_andi/dalipi_esercitazione_css_46.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
body, html {
height: 100%;
margin: 0;
padding: 0;
}

.container {
display: flex;
justify-content: center;
align-items: center;
height: 300px;
width: 400px;
margin: 50px auto;
border: 1.5px solid #67a8c7;
border-radius: 6px;
box-sizing: border-box;
}

button {
padding: 10px 20px;
background-color: #4b77b9;
color: white;
border: none;
font-family: sans-serif;
font-size: 14px;
cursor: pointer;
}
14 changes: 14 additions & 0 deletions TPSI/dalipi_andi/dalipi_esercitazione_css_46.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<!DOCTYPE html>
<html lang="it">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Esercizio CSS 46</title>
<link rel="stylesheet" href="dalipi_esercitazione_css_46.css">
</head>
<body>
<div class="container">
<button>Center me.</button>
</div>
</body>
</html>
31 changes: 31 additions & 0 deletions TPSI/dalipi_andi/dalipi_esercitazione_css_47.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
body {
margin: 0;
font-family: sans-serif;
background-color: #fff;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
}

.container {
display: flex;
flex-wrap: wrap;
width: 400px;
justify-content: center;
border: 1px solid #ccc;
padding: 20px;
border-radius: 6px;
background-color: white;
}

.item {
background-color: #4b77b9;
color: white;
padding: 10px 20px;
margin: 5px;
border-radius: 10px;
text-align: center;
font-size: 14px;
}

25 changes: 25 additions & 0 deletions TPSI/dalipi_andi/dalipi_esercitazione_css_47.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<!DOCTYPE html>
<html lang="it">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Esercizio CSS 47</title>
<link rel="stylesheet" href="dalipi_esercitazione_css_47.css">
</head>
<body>
<div class="container">
<div class="item">Turnip</div>
<div class="item">greens</div>
<div class="item">yarrow</div>
<div class="item">ricebean</div>

<div class="item">rutabaga</div>
<div class="item">endive</div>
<div class="item">cauliflower</div>

<div class="item">sea lettuce</div>
<div class="item">kohlrabi</div>
<div class="item">amaranth</div>
</div>
</body>
</html>
32 changes: 32 additions & 0 deletions TPSI/dalipi_andi/dalipi_esercitazione_css_49.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
.cont {
display: grid;
grid-template-columns: repeat(6, 1fr);
grid-template-rows: repeat(7, minmax(50px,1fr));
}

.cont > div {
border: 1px solid red;
background-color: white;
display: flex;
align-items: center;
justify-content: center;
font-weight: bolder;
}

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

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

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

.media {
grid-column: 5 / 7;
grid-row: 5 / 8;
}
38 changes: 38 additions & 0 deletions TPSI/dalipi_andi/dalipi_esercitazione_css_49.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="dalipi_esercitazione_css_49.css">
<title>Esercizio 49</title>
</head>
<body>

<div class="cont">
<div class="lunga">1</div>
<div class="alta">1</div>
<div class="grossa">1</div>
<div>1</div>
<div>1</div>
<div>1</div>
<div>1</div>
<div>1</div>
<div>1</div>
<div>1</div>
<div>1</div>
<div>1</div>
<div>1</div>
<div>1</div>
<div>1</div>
<div class="media">1</div>
<div>1</div>
<div>1</div>
<div>1</div>
<div>1</div>
<div>1</div>
<div>1</div>
<div>1</div>
<div>1</div>
</div>
</body>
</html>
15 changes: 15 additions & 0 deletions TPSI/dalipi_andi/dalipi_esercitazione_css_50.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
.cont{
display: grid;
grid-template-columns: repeat(3,100px);
grid-template-rows: repeat(2,minmax(50px,1fr));
gap: 10px;
}

.cont > div{
background-color: rgb(71, 71, 71);
border-radius: 5px;
display: flex;
justify-content: center;
align-items: center;
color: white;
}
20 changes: 20 additions & 0 deletions TPSI/dalipi_andi/dalipi_esercitazione_css_50.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<!DOCTYPE html>
<html lang="it">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="dalipi_esercitazione_css_50.css">
<title>Esercizio 50</title>
</head>
<body>

<div class="cont">
<div>A</div>
<div>B</div>
<div>C</div>
<div>D</div>
<div>E</div>
<div>F</div>
</div>
</body>
</html>
23 changes: 23 additions & 0 deletions TPSI/dalipi_andi/dalipi_esercitazione_css_51.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
.cont{
display: grid;
grid-template-columns: repeat(3,100px);
grid-template-rows: repeat(2,minmax(50px,1fr));
gap: 10px;
}

.cont > div{
background-color: rgb(71, 71, 71);
border-radius: 5px;
display: flex;
justify-content: center;
align-items: center;
color: white;
}
.a{
grid-column: 1 / 3;

}
.b{
grid-row: 1 / 3;
grid-column: 3;
}
18 changes: 18 additions & 0 deletions TPSI/dalipi_andi/dalipi_esercitazione_css_51.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="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="dalipi_esercitazione_css_51.css">
<title>Esercizio 51</title>
</head>
<body>

<div class="cont">
<div class="a">A</div>
<div class="b">B</div>
<div>C</div>
<div>D</div>
</div>
</body>
</html>
27 changes: 27 additions & 0 deletions TPSI/dalipi_andi/dalipi_esercitazione_css_52.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
.cont{
display: grid;
grid-template-columns: repeat(4,100px);
grid-template-rows: repeat(3,minmax(50px,1fr));
gap: 10px;
}

.cont > div{
background-color: rgb(71, 71, 71);
border-radius: 5px;
display: flex;
justify-content: center;
align-items: center;
color: white;
}
.a{
grid-column: 1 / 3;
}
.b{
grid-column: 3 / 5;
}
.d{
grid-column: 2 / 5;
}
.e{
grid-column: 1 / 5;
}
Loading