Codigo para ubicar un parrafo en la mitad
p {
position: absolute;
top: 40%;
left: 45%;
}
All generations.
p {
position: absolute;
top: 40%;
left: 45%;
}
body {
margin: 10px;
padding: 10px;
}
p {
border: 1px solid black;
}
p:first-of-type {
text-align: left;
text-align-last: right;
}
p:last-of-type {
text-align: center;
text-align-last: bottom;
}
ul {
border: 1px solid black;
text-align: right;
text-align-last: center;
}
<html>
<head>
<title>Pagina con: titulo, 2 parrafos, lista no numerada, imagen y tabla de datos</title>
</head>
<body>
<h1>Bienvenido!!</h1>
<p id="parrafo1">Hola, bienvenido a mi pagina web</p>
<p id="parrafo2">Este es un ejercicio</p>
<h2>Lista no numerada</h2>
<ul>
<li>Hola</li>
<li>Como estas</li>
</ul>
<h2>Imagen</h2>
<img src="http://www.laverdad.es/murcia/imagenes/2015/04/22/noticias/1429663230_974562_1429663528_sumario_grande.jpg">
<h2>Tabla de datos</h2>
<table>
<thead>
<p style="background-image: url(ejemplo.jpg); background-repeat: no-repeat; background-position: right;"> Ejemplo de párrafo con imagen de fondo </p>
.container {
position: absolute;
left: 0;
right: 0;
margin: 0 auto;
}
<table>
<tr>
<td>1</td>
<td>2</td>
<td>3</td>
<td>4</td>
</tr>
<tr>
<td>5</td>
<td>6</td>
<td>7</td>
<td>8</td>
</tr>
</table>
<form action="#" method="post">
<div class="form-group">
<label for="email">Email address:</label>
<input type="email" class="form-control" id="email">
</div>
</form>
.container {
display: flex;
justify-content: center;
align-items: center;
}
#parrafo1 {
border: 1px solid black;
text-align: center;
float:left;
}
#parrafo2 {
border: 1px solid black;
text-align: right;
float:right;
}
ul {
border: 1px solid black;
float: right;
}
table,td {
border: 2px solid red;
padding: 10px;
}
<form>
<input type="text" name="" id="" value="" placeholder="Texto alfanumérico libre(texto corto)">
<input type="search" name="" id="" value="" placeholder="texto para búsquedas">
<input type="tel" name="" id="" value="" placeholder="número de teléfono">
<input type="url" name="" id="" value="" placeholder="dirección url">
<input type="password" name="" id="" value="" placeholder="clave">
<input type="hidden" name="" id="" value="" placeholder="campo oculto">
<input type="text" name="" id="" value="" placeholder="texto alfanumérico libre (texto largo)">
<input type="number" name="" id="" value="" placeholder="número o cantidad numérico">
<input type="range" name="" id="" value="" placeholder="rango numérico">
<input type="date" name="" id="" value=""
<table border='1' cellspacing='0' cellpadding='0'>
<tr>
<td> <a href="https://www.youtube.com/">Youtube</a> </td>
<td> <a href="https://www.google.com/">Google</a> </td>
<td> <a href="https://www.facebook.com/">Facebook</a> </td>
<td> <a href="https://www.instagram.com/">Instagram</a> </td>
</tr>
</table>
.circle {
width: 100px;
height: 100px;
border-radius: 50%;
}
.tabla {
width: 450px;
height: 350px;
border: 1px solid #000;
border-collapse: collapse;
}
.table td {
width: 100px;
height: 50px;
border: 1px solid #000;
}
.table a {
text-decoration: none;
color: #000;
}
.container {
width: 100px;
height: 100px;
}
h1 {
text-align: center;
border: 2px solid black;
color: red;
}
.page-header {
text-align: center;
}
ul {
padding: 0;
list-style-type: none;
}
<form class="navbar-form">
<div class="form-group">
<input type="text" class="form-control" placeholder="Email">
</div>
</form>
<form action="" method="post">
<input type="date" placeholder="fecha y hora local">
<input type="month" placeholder="mes">
<input type="week" placeholder="semana">
<input type="checkbox" placeholder="casilla de verificación">
<input type="radio" placeholder="botón radio">
<input type="select" placeholder="lista (cerrada)">
<input type="select" multiple placeholder="lista (abierta)">
<input type="color" placeholder="campo de entrada de datos de selección de color">
<input type="file" placeholder="adjuntar archivo">
</form>
<img src ="http://lorempixel.com/400/200/sports/">
<html>
<head>
<title>
titulo
</title>
</head>
<body>
<h1>titulo</h1>
<p>parrafo</p>
<ul>
<li>titulo</li>
<li>titulo</li>
<li>titulo</li>
</ul>
<ol>
<li>titulo</li>
<li>titulo</li>
<li>titulo</li>
</ol>
</body>
</html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<style>
td{
border-bottom: 2px solid black;
}
</style>
</head>
<body>
<table>
<tr>
<td>1</td>
<td>A</td>
</tr>
<tr>
<td>2</td>
<td>B</td>
</tr>
<tr>
<td>3</td>
<td>C</td>
</tr>
<tr>
<td>4</td>
<td>D</td>
</tr>
<tr>
<
p {
width: 60%;
margin: 0 auto;
}
<p>enlace a una foto de un gato</p>
<!-- TODO: Add link to cat photos -->
.container {
width: 100px;
height: 100px;
border-radius: 50%
}
#parrafo1{
border:2px;
text-align:left;
text-align:right;
}
#parrafo2{
border:2px;
text-align:center;
text-align:bottom;
}
`
## Reference
* [CSS Selectors](http://www.w3schools.com/cssref/css_selectors.asp)
* [CSS Properties](http://www.w3schools.com/cssref/default.asp)
<img src="https://www.google.com/images/branding/googlelogo/2x/googlelogo_color_272x92dp.png">
<input type="radio" name="indoor-outdoor"> Indoor
<table>
<thead>
<tr>
<th>Horas</th>
<th>Lunes</th>
<th>Martes</th>
<th>Miercoles</th>
<th>Jueves</th>
<th>Viernes</th>
</tr>
</thead>
<tbody>
<tr>
<td>8:30 - 9:20</td>
<td></td>
<td>Programacion I</td>
<td></td>
<td>Programacion II</td>
<td></td>
</tr>
<tr>
<td>9:20 - 10:10</td>
<td></td>
<td>Programacion I</td>
<td></td>
<td>Programacion II</td>
<td></td>
</tr>
<tr>
<td>10:10 - 11:
.container {
width: 50%;
}
p {
text-align: right;
}
table {
border-collapse: collapse;
border: 1px solid black;
}
td, th {
border: 1px solid black;
}
<tr>
<th>HolA</th>
<th>Como</th>
<th>Estas</th>
</tr>
1. table 1
2. table 2
3. table 3
body {
background-color: #00FFFF;
}
h1 {
color: #FF1493;
text-align: center;
}
p {
color: #4B0082;
text-align: center;
}
li {
color: #FF00FF;
border-style: solid;
border-width: 5px;
text-align: center;
}
ol {
color: #FF0000;
}
.container {
display: flex;
justify-content: center;
align-items: center;
width: 100px;
height: 100px;
}
h1 {
margin: 0 auto;
width: 50%;
}
<label for="text">Texto alfanumérico libre(texto corto)</label>
<input type="text" id="text" name="text">
<label for="search">texto para búsquedas</label>
<input type="search" id="search" name="search">
<label for="tel">número de teléfono</label>
<input type="tel" id="tel" name="tel">
<label for="url">dirección url</label>
<input type="url" id="url" name="url">
<label for="password">clave</label>
<input type="password" id="password" name="password">
<label for="hidden">campo oculto</label>
<input type="hidden" id="hidden" name="hidden">
<label for="textarea">texto alfanumérico libre (texto largo)</label>
<textarea id="textarea" name="textarea"></textarea>
<label for="
<form action="/action_page.php" class="form-group">
<label for="fname">Nombre:</label>
<input type="text" id="fname" name="nombre" placeholder="Escriba su nombre">
<label for="lname">Edad:</label>
<input type="number" id="lname" name="lastname" placeholder="Escriba su edad">
<label for="fname">Nombre de Acudiente:</label>
<input type="text" id="fname" name="nombre" placeholder="Escriba su nombre">
<label for="lname">Pais:</label>
<input type="text" id="lname" name="lastname" placeholder="Escriba su Pais">
<label for="lname">Ciudad:</label>
<input type="text" id="lname" name="lastname" placeholder="Escriba su ciudad">
<input type="
table {
border-collapse: collapse;
width: 100%;
}
th, td {
text-align: left;
padding: 8px;
}
tr:nth-child(even){background-color: #f2f2f2}
th {
background-color: #4CAF50;
color: white;
}
<table>
<tr>
<td>1</td>
<td>2</td>
<td>3</td>
<td>4</td>
<td>5</td>
</tr>
<tr>
<td>1</td>
<td>2</td>
<td>3</td>
<td>4</td>
<td>5</td>
</tr>
<tr>
<td>1</td>
<td>2</td>
<td>3</td>
<td>4</td>
<td>5</td>
</tr>
<tr>
<td>1</td>
<td>2</td>
<td>3</td>
<td>4</td>
<td>5</td>
</tr>
<tr>
<td>1</td>
<td>2</td>
table {
margin-top: 20px;
border-collapse: collapse;
border: 1px solid #000;
text-align: center;
}
td, th {
border: 1px solid #000;
}
td {
padding: 10px;
}
th {
padding: 15px;
}
h1 {
text-align: center;
border: 2px solid;
border-color: #191919;
color: #191919;
}
h1 {
width: 50%;
}
<a href="http://placekitten.com">link to cat pictures</a>
.container-redonda {
width: 200px;
height: 200px;
background-image: url('http://placekitten.com/200/200');
border-radius: 50%;
}
<a href="https://www.youtube.com/">Youtube</a>
<a href="https://www.google.com/">Google</a>
<a href="https://www.facebook.com/">Facebook</a>
<a href="https://www.instagram.com/">Instagram</a>
<img src="img.jpg" style="position: absolute; top: 0; left: 0; opacity: 0.2;"/>
table {
border-collapse: collapse;
width: 100%;
}
th, td {
text-align: left;
padding: 8px;
}
tr:nth-child(even){background-color: #f2f2f2}
th {
background-color: #4CAF50;
color: white;
}
.title {
margin-left: auto;
margin-right: auto;
}
<table border="1px" width="100px">
<thead>
<tr>
<th>Hora</th>
<th>Lunes</th>
<th>Martes</th>
<th>Miercoles</th>
<th>Jueves</th>
<th>Viernes</th>
</tr>
</thead>
<tbody>
<tr>
<td>08:00-09:00</td>
<td>Matematicas</td>
<td>Historia</td>
<td>Geografia</td>
<td>Comunicación</td>
<td>Ingles</td>
</tr>
<tr>
<td>09:00-10:00</td>
<td>Matematicas</td>
<td>Historia</td>
<td>Geografia</td>
<td>Comunic
Generate
More than just a code generator. A tool that helps you with a wide range of tasks. All in one place.
Function from Description
Text Description to SQL Command
Translate Languages
Generate HTML from Description
Code to Explanation
Fix invalid Code
Get Test for Code
Class from Description
Regex from Description
Regex to Explanation
Git Command from Description
Linux Command
Function from Docstring
Add typing to code
Get Language from Code
Time complexity
CSS from Description
Meta Tags from Description