practica de css
practica de css
background-color: gold;
color: green;
}
span {
background-color: yellow;
}
strong {
color: rebeccapurple;
}
em {
color: rebeccapurple;
}
* {
margin: 0;
}
.highlight {
background-color: lime;
}
strong.highlight {
background-color: gray;
}
span.highlight {
background-color: darkviolet;
}
.notebox {
font-size: 125%;
border: 4px solid #666;
padding: 5em;
background-color: blue;
color: yellow;
}
.notebox.warning {
border-color: orange;
font-weight: bold;
background-color: blueviolet;
color: skyblue;
}
.notebox.danger {
border-color: red;
font-weight: bold;
background-color: aqua;
color: green;
}
#one {
background-color: yellow;
}
h1#heading {
color: rebeccapurple;
}
li[class] {
font-size: 200%;
}
li[class = "a"] {
background-color: yellow;
}
li[class ~= "a"] {
color: red;
}
li[class ^= "a"] {
font-size: 200%;
}
li[class $= "a"] {
background-color: yellow;
}
li[class *= "a"] {
color: red;
}*/
li[class ^= "a"] {
background-color: yellow;
}
li[class ^= "a" i] {
color: red;
}
article p:first-child {
font-size: 120%;
font-weight: bold;
}
.red-input:focus {
background: yellow;
color: red;
}
.blue-input:focus {
background:yellow;
color: blue;
}
article p:first-child::first-line {
font-size: 140%;
font-weight: bold;
}
.box::before {
content: "This should show before the other content.";
}
.box-2::after {
content:
url("https://cdn.icon-icons.com/icons2/3389/PNG/512/arrow_small_right_icon_213184.p
ng");
}
.box-3::before {
content: "";
display: block;
width: 100px;
height: 100px;
background-color: rebeccapurple;
border: 1px solid black;
}
a:any-link {
font-size: 130%;
border: 1px solid blue;
color: orange;
}
a:-webkit-any-link {
border: 2px solid orange;
color: blue;
}
.active:active {
background-color: lightgreen;
}
div,
select {
margin: 8px;
}
/*Etiquetas para entradas marcadas*/
input:checked + label {
color:red;
}
/*Elemento radio, cuando está marcado*/
input[type = "radio"]:checked {
box-shadow: 0 0 0 3px orange;
}
.box {
height: 150px;
width: 200px;
border-style: dotted;
border-color: yellow;
}
.box2 {
border: 5px solid darkgreen;
height: 150px;
width: 200px;
font-size: 150%;
}
.box3 {
border: 5px solid darkred;
width: 300px;
margin: 10%;
padding: 10%;
}
.box4 {
border: 5px solid lightgreen;
min-height: 150px;
width: 200px;
font-size: 150%;
}
.box5 {
width: 200px;
}
.minibox {
width: 50px;
}
.width {
width: 100%;
}
.max {
max-width: 100%;
}
.box6 {
border: 5px solid yellow;
width: 20vw;
height: 20vh;
font-size: 10vh;
}
.box7 {
width: 200px;
}
/*img {
border: 5px solid darkblue;
max-width: 100%;
}*/
.box8 {
width: 200px;
height: 200px;
}
/*img {
border: 5px solid goldenrod;
height: 100%;
width: 100%;
}*/
.cover {
object-fit: cover;
}
.contain {
object-fit: contain;
}
.wrapper6 {
display: grid;
grid-template-columns: 1fr 1fr;
grid-template-rows: 200px 200px;
gap: 20px;
}
.wrapper6 > div {
background-color: rebeccapurple;
border-radius: .5em;
}
input [type = "text"],
input [type = "email"] {
border: 2px solid #000;
margin: 0 0 1em 0;
padding: 10px;
width: 100%;
}
input [type = "submit"] {
border: 3px solid #333;
background-color: #999;
border-radius: 5px;
padding: 10px 2em;
font-weight: bold;
color: #fff;
}
input [type = "submit"]:hover,
input [type = "submit"]:focus {
background-color: #333;
}
table {
table-layout: fixed;
width: 100%;
border-collapse: collapse;
border: 3px solid purple;
}
thead th:nth-child(1) {
width: 30%;
}
thead th:nth-child(2) {
width: 20%;
}
thead th:nth-child(3) {
width: 15%;
}
thead th:nth-child(4) {
width: 35%;
}
th,
td {
padding: 20px;
}
/* typography */
html {
font-family: "helvetica neue", helvetica, arial, sans-serif;
}
thead th,
tfoot th {
font-family: "Rock Salt", cursive;
}
th {
letter-spacing: 2px;
}
td {
letter-spacing: 1px;
}
tbody td {
text-align: center;
}
tfoot th {
text-align: right;
}
thead,
tfoot {
background: url(leopardskin.jpg);
color: white;
text-shadow: 1px 1px 1px black;
}
thead th,
tfoot th,
tfoot td {
background: linear-gradient(
to bottom,
rgba(0, 0, 0, 0.1),
rgba(0, 0, 0, 0.5)
);
border: 3px solid purple;
}
tbody tr:nth-child(odd) {
background-color: #ff33cc;
}
tbody tr:nth-child(even) {
background-color: #e495e4;
}
tbody tr {
background-image: url(noise.png);
}
table {
background-color: #ff33cc;
}
caption {
font-family: "Rock-salt", cursive;
padding: 20px;
font-style: italic;
caption-side: bottom;
color: #666;
text-align: right;
letter-spacing: 1px;
}