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
69 changes: 69 additions & 0 deletions 2-positioning/positioning.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
<!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>Position</title>
<link rel="stylesheet" href="style.css" />
</head>
<body>

<header class="header">
<h1>This is my first layout</h1>
</header>

<nav class="cont-p">
<ul class="cont-indice">
<a href=""><li class="indice">Home</li></a>
<a href=""><li class="indice">Productos</li></a>
<a href=""><li class="indice">About us</li></a>
<a href=""><li class="indice">Contac</li></a>
</ul>
</nav>

<section class="cont-2">
<p>
Lorem Ipsum is simply dummy text of the printing and typesetting
industry. Lorem Ipsum has been the industry's standard dummy text ever
since the 1500s, when an unknown printer took a galley of type and
scrambled it to make a type specimen book. It has survived not only
five centuries, but also the leap into electronic typesetting,
remaining essentially unchanged. It was popularised in the 1960s with
the release of Letraset sheets containing Lorem Ipsum passages, and
more recently with desktop publishing software like Aldus PageMaker
including versions of Lorem Ipsum.
</p>
</section>
<section class="cont-2">
<p>
Lorem Ipsum is simply dummy text of the printing and typesetting
industry. Lorem Ipsum has been the industry's standard dummy text ever
since the 1500s, when an unknown printer took a galley of type and
scrambled it to make a type specimen book. It has survived not only
five centuries, but also the leap into electronic typesetting,
remaining essentially unchanged. It was popularised in the 1960s with
the release of Letraset sheets containing Lorem Ipsum passages, and
more recently with desktop publishing software like Aldus PageMaker
including versions of Lorem Ipsum.
</p>
</section>
<section class="cont-2">
<p>
Lorem Ipsum is simply dummy text of the printing and typesetting
industry. Lorem Ipsum has been the industry's standard dummy text ever
since the 1500s, when an unknown printer took a galley of type and
scrambled it to make a type specimen book. It has survived not only
five centuries, but also the leap into electronic typesetting,
remaining essentially unchanged. It was popularised in the 1960s with
the release of Letraset sheets containing Lorem Ipsum passages, and
more recently with desktop publishing software like Aldus PageMaker
including versions of Lorem Ipsum.
</p>
</section>
<footer>
About my company
</footer>

</body>
</html>
53 changes: 53 additions & 0 deletions 2-positioning/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
.header{
width: 100%;
background-color: black;
color: white;
font-size: 7px;
border-width: 3px;
border-style: solid;
border-color: #2ff60b;
}

.cont-p{
width: 200px;
border-width: 3px;
border-style: solid;
border-color: #1031f7;
position: fixed;
top: 49px;
left: 10px;
}

.indice{
color: #1031f7;
text-decoration: #1031f7;
font-size: 20px;

}

.cont-2{
width: 70%;

padding-left: 227px;
margin: 0;
display: inline-block;
}

.cont-2 p{
border-width: 3px;
border-style: solid;
border-color: red;
margin: 0px;
}
footer{
background-color: black;
width: 100%;
color: white;
font-size: 25px;
border-width: 3px;
border-style: solid;
border-color: #f4d944;
}