Skip to content

Instantly share code, notes, and snippets.

@DavidPeralvarez
DavidPeralvarez / selectores-id-clase.html
Created March 29, 2018 13:33
(HTML) Selectores de ID y de CLASE en CSS
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" type="text/css" href="styles.css">
<title>THE NEW YORK TIMES</title>
</head>
<body>
<header>
body{
background-color: #333;
color: white;
padding: 50px;
}
h1{
color: yellow;
}
p{
font-size: 18px;
@DavidPeralvarez
DavidPeralvarez / css-externo.html
Created March 29, 2018 13:31
Incluir CSS en el HTML
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Interno</title>
<link rel="stylesheet" type="text/css" href="estilos.css">
</head>
<body>
<h1>La opción más recomendada es el CSS externo</h1>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Interno</title>
<style type="text/css">
body{
background-color: #333;
color: white;
padding: 50px;
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Inline</title>
</head>
<body>
<h1 style="color: red; margin-bottom: 10px; font-size: 40px;">Estoy aprendiendo a incluir código CSS</h1>
@DavidPeralvarez
DavidPeralvarez / margin.css
Created March 29, 2018 13:24
Propiedad margin
h1{
width: 100px;
padding: 15px;
border: solid 4px blue;
border-bottom-color: green;
margin-top: 20px;
}
@DavidPeralvarez
DavidPeralvarez / border-2.css
Created March 29, 2018 13:24
Propiedad border 2
h1{
width: 100px;
padding: 15px;
border: solid 4px blue;
border-bottom-color: green;
}
@DavidPeralvarez
DavidPeralvarez / border.css
Created March 29, 2018 13:22
Propiedad border
h1{
width: 100px;
padding: 15px;
border-style: solid;
border-width: 4px;
border-color: blue;
}
@DavidPeralvarez
DavidPeralvarez / padding-5.css
Created March 29, 2018 13:21
Propiedad padding 5
h1{
width: 100px;
padding: 10px 5px 20px;
}
@DavidPeralvarez
DavidPeralvarez / padding-4.css
Created March 29, 2018 13:21
Propiedad padding 4
h1{
width: 100px;
padding: 10px 5px;
}