update
This commit is contained in:
20
DEV.1.2/tp2/ex6.html
Normal file
20
DEV.1.2/tp2/ex6.html
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="fr">
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<meta name="viewport" content="initial-scale=1,witdh=device-width">
|
||||||
|
<title>Exercice 6</title>
|
||||||
|
<link rel="stylesheet" href="./style6.css">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<table>
|
||||||
|
<tbody>
|
||||||
|
<tr><td rowspan="5"></td><td colspan="3"></td><td rowspan="4"></td></tr>
|
||||||
|
<tr><td rowspan="3"></td><td></td><td rowspan="2"></td></tr>
|
||||||
|
<tr><td></td></tr>
|
||||||
|
<tr><td colspan="2"></td></tr>
|
||||||
|
<tr><td colspan="4"></td></tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</body>
|
||||||
|
</html>
|
9
DEV.1.2/tp2/style_ex6.css
Normal file
9
DEV.1.2/tp2/style_ex6.css
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
table {
|
||||||
|
border-collapse: collapse;
|
||||||
|
}
|
||||||
|
td {
|
||||||
|
border:1px solid black;
|
||||||
|
width:50px;
|
||||||
|
height:50px;
|
||||||
|
}
|
||||||
|
|
22
DEV.1.2/tp3/ex1.html
Normal file
22
DEV.1.2/tp3/ex1.html
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="fr">
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<title>Exercice 1</title>
|
||||||
|
<link rel="stylesheet" href="style_ex1.css">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>Mes films préférés de Clint Eastwood</h1>
|
||||||
|
<ul>
|
||||||
|
<li>Gran Torino (2008)</li>
|
||||||
|
<li>Impitoyable (1992)</li>
|
||||||
|
<li>Mystic River (2003)</li>
|
||||||
|
<li>Sur la route de Madison (1995)</li>
|
||||||
|
<li>Lettres d'Iwo Jima (2006)</li>
|
||||||
|
<li>L'Échange (2008)</li>
|
||||||
|
<li>Josey Wales hors-la-loi (1976)</li>
|
||||||
|
<li>Breezy (1973)</li>
|
||||||
|
</ul>
|
||||||
|
</body>
|
||||||
|
</html>
|
18
DEV.1.2/tp3/ex2.html
Normal file
18
DEV.1.2/tp3/ex2.html
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<title>Exercice 2</title>
|
||||||
|
<meta name="viewport" content="initial-scale=1,witdh=device-width">
|
||||||
|
<link rel="stylesheet" href="style_ex2.css">
|
||||||
|
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<main>
|
||||||
|
<header></header>
|
||||||
|
<section></section>
|
||||||
|
<aside></aside>
|
||||||
|
<footer></footer>
|
||||||
|
</main>
|
||||||
|
</body>
|
||||||
|
</html>
|
18
DEV.1.2/tp3/ex3.html
Normal file
18
DEV.1.2/tp3/ex3.html
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<title>Exercice 3</title>
|
||||||
|
<meta name="viewport" content="initial-scale=1,witdh=device-width">
|
||||||
|
<link rel="stylesheet" href="style_ex3.css">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<ul>
|
||||||
|
<li><a href="https://developer.mozilla.org/docs/Web/HTML"> <img class="a" src="https://raw.githubusercontent.com/devicons/devicon/master/icons/html5/html5-plain.svg" height="200" alt="Logo html5"> </img></a></li>
|
||||||
|
|
||||||
|
<li><a href="https://developer.mozilla.org/docs/Web/CSS"> <img class="b" src="https://raw.githubusercontent.com/devicons/devicon/master/icons/css3/css3-plain.svg" height="200" alt="Logo CSS"> </img></a></li>
|
||||||
|
<li><a href="https://developer.mozilla.org/docs/Web/Javascript"> <img class="c" src="https://raw.githubusercontent.com/devicons/devicon/master/icons/javascript/javascript-plain.svg" height="200" alt="Logo Javascript"> </img></a></li>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</body>
|
||||||
|
</html>
|
18
DEV.1.2/tp3/style_ex1.css
Normal file
18
DEV.1.2/tp3/style_ex1.css
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
/* styles.css */
|
||||||
|
ul {
|
||||||
|
list-style-type: none; /* Supprime les puces de la liste */
|
||||||
|
padding: 0; /* Enlève le padding par défaut du conteneur de liste */
|
||||||
|
}
|
||||||
|
|
||||||
|
li {
|
||||||
|
background-color: #f0f0f03a; /* Couleur de fond pour le rectangle */
|
||||||
|
margin: 10px 0; /* Espace entre les éléments */
|
||||||
|
padding: 10px; /* Espace intérieur dans chaque rectangle */
|
||||||
|
border: 1px solid #ccc; /* Bordure pour le rectangle */
|
||||||
|
font-style: normal; /* Style de texte normal par défaut */
|
||||||
|
border-radius: 5px; /* Coins légèrement arrondis */
|
||||||
|
}
|
||||||
|
|
||||||
|
li:nth-child(even) {
|
||||||
|
background-color: #e0e0e0; /* Couleur légèrement différente pour les éléments pairs */
|
||||||
|
}
|
44
DEV.1.2/tp3/style_ex2.css
Normal file
44
DEV.1.2/tp3/style_ex2.css
Normal file
@@ -0,0 +1,44 @@
|
|||||||
|
main {
|
||||||
|
--main-height : 400px;
|
||||||
|
--main-width : 400px;
|
||||||
|
position : relative;
|
||||||
|
width : var(--main-width);
|
||||||
|
height : var(--main-height);;
|
||||||
|
background-color : yellow;
|
||||||
|
border-radius : 10px;
|
||||||
|
border: 4px solid red;
|
||||||
|
margin:auto;
|
||||||
|
}
|
||||||
|
section {
|
||||||
|
position : absolute ;
|
||||||
|
top : calc(var(--main-height) / 4 );
|
||||||
|
right:calc(var(--main-width) / 5);
|
||||||
|
width : calc(var(--main-height) / 4);
|
||||||
|
height : calc(var(--main-height) / 4);
|
||||||
|
height : calc(var(--main-height) / 4);
|
||||||
|
border-radius : calc(var(--main-height) / 4);
|
||||||
|
background-color : red;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
aside {
|
||||||
|
position : absolute ;
|
||||||
|
top : calc(var(--main-height) / 4 );
|
||||||
|
left:calc(var(--main-width) / 5);
|
||||||
|
width : calc(var(--main-height) / 4);
|
||||||
|
height : calc(var(--main-height) / 4);
|
||||||
|
height : calc(var(--main-height) / 4);
|
||||||
|
border-radius : calc(var(--main-height) / 4);
|
||||||
|
|
||||||
|
background-color : red;
|
||||||
|
}
|
||||||
|
footer {
|
||||||
|
position : absolute;
|
||||||
|
bottom : calc(var(--main-height) / 8 );
|
||||||
|
--tmp-left : calc(var(--main-width) / 5);
|
||||||
|
left : var(--tmp-left);
|
||||||
|
height : calc(var(--main-height) / 6);
|
||||||
|
width : calc(var(--tmp-left) * 3 );
|
||||||
|
background-color : red;
|
||||||
|
}
|
||||||
|
|
19
DEV.1.2/tp3/style_ex3.css
Normal file
19
DEV.1.2/tp3/style_ex3.css
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
ul
|
||||||
|
{
|
||||||
|
list-style-type: none;
|
||||||
|
padding: 0;
|
||||||
|
margin: 0;
|
||||||
|
display: inline-flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
height: 80vh;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
ul li {
|
||||||
|
margin: 0 100px;
|
||||||
|
}
|
||||||
|
|
||||||
|
ul img {
|
||||||
|
height: 200px;
|
||||||
|
}
|
Reference in New Issue
Block a user