Zdravím, učím se CSS a rád bych, kdyby mi někdo zkontroloval moje dílko a případně upozornil na chyby, kterých jsem se dopustil a vysvětlil mi, proč a jak je opravit.
Tu je kod:
/*
CSS SOUBOR
Martin Pitřík
*/
* {
margin: 0;
padding: 0;
}
html {
height: 100%;
font-size: 62.5%;
}
body {
height: 100%;
text-align: center;
font: 1.2em Verdana, Arial, Helvetica, sans-serif;
background-color: #dcdcdc;
min-width: 850px;
padding-bottom: 80px;
}
a:link, a:visited {
color: #00598D;
text-decoration: underline;
font-weight: bold;
}
a:hover {
text-decoration: none;
}
.cleaner {
clear: both;
height: 0;
font-size: 0;
visibility: hidden;
}
.noscreen {
display: none;
}
.uprostred {
margin: auto;
text-align: center;
}
p {
line-height: 1.9;
margin-bottom: 7px;
}
h1 {
font: 3em Georgia, "Times New Roman", Times, serif;
margin: 0 0 10px 30px;
border-bottom: 1px solid black;
width: 38%;
padding: 15px 0 5px 0;
}
h1 a:link, h1 a:visited {
font-weight: normal;
text-decoration: none;
color: #FFFFFF;
}
h2 {
font: 1.2em Verdana, Arial, Helvetica, sans-serif;
margin: 0 0 0 30px;
}
h3 {
color: #00598D;
font: 1.7em Georgia, "Times New Roman", Times, serif;
letter-spacing: 1px;
margin: 18px 0 10px 0;
}
h4 {
font-size: 1em;
background: #0099FF;
color: black;
letter-spacing: 1px;
margin-top: 7px;
padding: 6px 10px;
}
h5 {
color: #00598D;
font: 0.7em Georgia, "Times New Roman", Times, serif;
letter-spacing: 1px;
padding-left: 1px;
margin: 18px 0 10px 0;
}
strong{
color: black;
line-height: 1.9;
font-weight: bold;
}
ul {
list-style-type: none;
}
#main {
width: 850px;
margin: 20px auto 80px auto;
position: relative;
background-color: #FFFFFF;
display: table;
text-align: left;
border: 1px solid black;
}
#hlavicka {
margin: 0 auto;
height: 157px;
position: relative;
background: url('../img/head.jpg') no-repeat 0 0;
border-bottom: 1px solid black;
}
#menu {
width: 850px;
margin: 0 auto;
background: blue;
border-bottom: 1px solid black;
}
#menu li {
display: inline;
list-style-type: none;
}
#menu li a {
float: left;
color: #FFFFFF;
font-weight: normal;
text-decoration: none;
font-size: 1.1em;
line-height: 33px;
margin: 0 0.5em;
padding: 0 1em;
}
#menu li a:hover {
color: black;
background-color: #87cefa;
}
.mezera {
min-height: 1px;
}
.mezera:after {
display: block;
clear: both;
visibility: hidden;
height: 0;
font-size: 0;
content: ' ';
}
#stranka {
width: 100%;
margin: 0 auto;
color: #151515;
position: relative;
}
#leva_cast {
float: left;
width: 600px;
margin-bottom: 4em;
}
#prava_cast {
float: right;
width: 245px;
border-left: 1px solid black;
border-bottom: 1px solid black;
margin-bottom: 4em;
background-color: #CCFFFF;
}
.obsah {
margin: 0.4em 1.7em 0 2em;
}
.obsah table{
border-top: solid 2px blue;
margin-top: 0px;
}
.obsah table td {
height: 25px;
text-align: left;
}
.obsah table td.100 {
width: 100px;
}
.obsah table td.200 {
width: 200px;
}
.obsah table td.300 {
width: 300px;
}
.obsah table td.400 {
width: 400px;
}
.panel {
margin: 0.4em 0.6em 0 0.8em;
}
.panel img.foto {
border: 2px solid blue;
height: 153px;
width: 210px;
}
#zapati {
background: blue;
border-top: 1px solid black;
color: white;
width: 850px;
height: 35px;
font-size: 0.9em;
}
#zapati a, #zapati a:visited {
font-weight: normal;
color: white;
}
#zapati p.levo {
float: left;
text-align: left;
margin-top: 5px;
margin-left: 15px;
}
#zapati p.pravo {
float: right;
text-align: right;
margin-top: 5px;
margin-right: 15px;
}
Díky všem