dlaczego ten zapis nie działa? height: 50%;
kod:
body
{
background-color: #434;
color:darkgoldenrod;
font-size:24px;
font-family: fantasy;
}
.galeria
{
width: 50%;
height: 50%;
margin-left: auto;
margin-right: auto;
background: url(2.JPG) no-repeat;
background-size: auto 100%;
background-position: top center ;
}
<!DOCTYPE html>
<html lang="pl">
<head>
<title>Strona Główna</title>
<META charset="utf-8" />
<script src="jQuery.js"></script>
<link rel="stylesheet" type="text/css" href="style.css" />
</head>
<body>
<div class="galeria">
</div>
<script src="skrypt.js"></script>
</body>
</html>