books/stranka.css
Viki Rajnakova 4f05abc0ff init
2024-05-13 15:33:18 +02:00

264 lines
5.0 KiB
CSS

*{
box-sizing: border-box;
}
body {
font-family: Arial, Helvetica, sans-serif;
}
.container{
display: flex;
flex-direction: row;
justify-content: space-evenly;
border: 5px dotted rgb(22, 48, 32);
background-color:rgb(115, 144, 114);
}
.box {
height: 110px;
width: 110px;
border-radius: 15px;
}
/* Style the header */
header {
background-color:rgb(48, 77, 48);
padding: 30px;
text-align: center;
font-size: 50px;
color: rgb(210, 227, 200);
height: 200px;
}
/* Create two columns/boxes that floats next to each other */
nav {
float: left;
width: 100%;
/* height: 300px; only for demonstration, should be removed */
background:rgb(115, 144, 114);
padding: 20px;
color: rgb(210, 227, 200);
}
/* Style the list inside the menu */
nav ul {
list-style-type: none;
padding: 0;
color: rgb(210, 227, 200);
}
nav ul li :hover{
color:rgb(210, 227, 200);
text-decoration: none;
}
nav ul li {
color: rgb(255, 255, 255);
text-align: center;
text-decoration: none;
}
/*linky formatovanie*/
a:link {
color: rgb(48, 77, 48);
text-decoration: none;
}
a:visited {
color: rgb(48, 77, 48);
text-decoration: none;
}
a:active {
color: yellow;
background-color: transparent;
text-decoration: underline;
}
article {
float: left;
padding: 50px;
width: 100%;
background-color:rgb(210, 227, 200);
/* height: 300px; only for demonstration, should be removed */
}
/* Clear floats after the columns */
section::after {
content: "";
display: table;
clear: both;
height: fit-content;
}
/* Style the footer */
footer {
background-color: rgb(48, 77, 48);
padding: 20px;
text-align: center;
color: rgb(210, 227, 200);
}
/* Responsive layout - makes the two columns/boxes stack on top of each other instead of next to each other, on small screens */
@media (max-width: 600px) {
nav, article {
width: 100%;
height: auto;
}
}
#tabulka2, #tabulka2 th, #tabulka2 td
{
border: 2px solid black;
border-collapse: collapse;
color:rgb(48, 77, 48);
height: 50px;
max-width: max-content;
border-top-width: 3px;
border-right-width: 3px;
border-bottom-width: 3px;
border-left-width: 3px;
}
/* CLASS zapisujeme v css znakom . */
.podfarbenie tr
{
background-color: rgb(159, 190, 142);
}
/*
.podfarbenie tr {
background-color: rgb(210, 227, 200);
}
#tabulka2 {
border-color: rgb(79, 111, 82);
border: solid 20px;
}
tr {
display: table-row;
vertical-align: inherit;
border-color: inherit;
border-top-color: ;
border-right-color: ;
border-bottom-color: ;
border-left-color: ;
}
table {
border-collapse: separate;
text-indent: initial;
border-spacing: 2px;
-webkit-border-horizontal-spacing: ;
-webkit-border-vertical-spacing: ;
}
#tabulka2, #tabulka2 th, #tabulka2 td {
border: 1px solid black;
border-top-width: 1px;
border-right-width: 1px;
border-bottom-width: 1px;
border-left-width: 1px;
border-top-style: solid;
border-right-style: solid;
border-bottom-style: solid;
border-left-style: solid;
border-top-color: rgb(163, 31, 31);
border-right-color: rgb(73, 183, 81);
border-bottom-color: rgb(111, 41, 177);
border-left-color: rgb(215, 16, 149);
border-image-source: initial;
border-image-slice: initial;
border-image-width: initial;
border-image-outset: initial;
border-image-repeat: initial;
border-collapse: collapse;
}
*/
body {
font-family: Arial, Helvetica, sans-serif;
}
.navbar {
overflow: hidden;
background-color: rgb(9, 56, 27);
}
.navbar a {
float: left;
font-size: 16px;
color: rgb(210, 227, 200);
text-align: center;
padding: 14px 16px;
text-decoration: none;
}
.dropdown {
float: left;
overflow: hidden;
}
.dropdown .dropbtn {
font-size: 16px;
border: none;
outline: none;
color: rgb(210, 227, 200);
padding: 14px 16px;
background-color: inherit;
font-family: inherit;
margin: 0;
}
.navbar a:hover, .dropdown:hover .dropbtn {
background-color: rgb(210, 227, 200);
color: rgb(9, 56, 27);
}
.dropdown-content {
display: none;
position: absolute;
background-color: rgb(98, 143, 102);
min-width: 160px;
box-shadow: 0px 8px 16px 0px rgb(9, 56, 27);
z-index: 1;
}
.dropdown-content a {
float: none;
color:rgb(9, 56, 27);
padding: 12px 16px;
text-decoration: none;
display: block;
text-align: left;
}
.dropdown-content a:hover {
background-color:rgb(210, 227, 200);
}
.dropdown:hover .dropdown-content {
display: block;
}