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
26 changes: 26 additions & 0 deletions colapsoMargenes.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
.container{
display: flex;
flex-direction: column;
}
div{
margin: 20px;
background: cyan;
}
</style>
</head>
<body>
<section class="container">

<div>Sebas</div>
<div>Cabascango</div>
</section>
</body>
</html>
47 changes: 47 additions & 0 deletions cssGrid.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
.container{
display: grid;
background: papayawhip;
width: 400px;
height: 400px;
grid-template-columns: 1fr 1fr 1fr 1fr;
grid-template-rows: 1fr 1fr 1fr 1fr;
}
.item{
background: pink;
}

.container .item:nth-child(1){
grid-column: 1 / 2;
}
.container .item:nth-child(2){
grid-column: 2 / 3;
grid-row: 2 / 3;
}
.container .item:nth-child(3){
grid-column: 3 / 4;
grid-row: 3 / 4;
}
.container .item:nth-child(4){
grid-column: 4 / 5;
grid-row: 4 / 5;
}
</style>
</head>
<body>
<div class="container">
<div class="item"></div>
<div class="item"></div>
<div class="item"></div>
<div class="item"></div>

</div>
</body>
</html>
Empty file added display.css
Empty file.
27 changes: 27 additions & 0 deletions display.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
body{
margin: 0;
}
div{
background: salmon;
/* width: 200px;
height: 200px;
margin: 20px; */
}
a{
background: skyblue;
}
</style>
</head>
<body>
<div>Bloque</div>
<a href="/">inline</a>
</body>
</html>
Empty file added especificidad.css
Empty file.
20 changes: 20 additions & 0 deletions especificidad.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 http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
#platzi{
color: rgb(76, 238, 76);
}
.master{
color: rgb(245, 22, 197);
}
</style>
</head>
<body>
<div id="platzi" class="master">Fronted Developer</div>
</body>
</html>
38 changes: 38 additions & 0 deletions flexbox.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 http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>FlexBox</title>
<style>
.container{
/* poner siempre display :flex cuando ya vamos a empezar con un padre */
display: flex;
background: papayawhip;
/* para poner nuestros elementos en el medio */
justify-content: center;
align-items: center;
flex-direction: column;
height: 200px;
}
/* elementos hijos */
.item{
width:30px;
height: 30px;
background: purple;
}
.container .item:nth-child(2n+1){
background: cyan;
}
</style>
</head>
<body>
<div class="container">
<div class="item"></div>
<div class="item"></div>
<div class="item"></div>
<div class="item"></div>
</div>
</body>
</html>
20 changes: 20 additions & 0 deletions index.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 http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<section>
<h1>Platzi</h1>
<p>Tiene una comunidad</p>
<ul>
<li>Maravillosa</li>
<li>Increible</li>
<li></li>
</ul>
</section>
</body>
</html>
Loading