veebikoolitus-2018-03-live/styles.css

73 lines
1.1 KiB
CSS
Raw Normal View History

2018-03-22 18:03:54 +02:00
h1 {
text-align: center;
}
.container {
max-width: 50rem;
width: 760px;
margin:auto;
}
#addForm {
padding: 1rem;
background-color: #f2f2f2;
min-width: 18.03rem;
max-width: 30rem;
margin:auto;
}
#addForm h2 {
margin-top: 0.1rem;
}
input[type=text], select, textarea {
width: 100%;
padding: 12px 20px;
margin: 8px 0;
display: inline-block;
border: 1px solid #ccc;
border-radius: 4px;
box-sizing: border-box;
}
input[type=submit] {
width: 100%;
background-color: #4CAF50;
color: white;
padding: 14px 20px;
margin: 8px 0;
border: none;
border-radius: 4px;
cursor: pointer;
}
table, td, th {
border: 1px black solid;
}
table {
border-collapse: collapse;
}
table {
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
border-collapse: collapse;
width: 100%;
}
table td, table th {
border: 1px solid #ddd;
padding: 8px;
}
table th {
padding-top: 12px;
padding-bottom: 12px;
background-color: #4CAF50;
color: white;
}
table tr:nth-child(even){background-color: #f2f2f2;}
table tr:hover {background-color: #ddd;}