CSS - właściwości background
background
kod |
wynik kodu |
<html>
<head>
<title>programowanie - CSS - background</title>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-2">
<meta http-equiv="Content-Language" content="pl">
<link rel="Stylesheet" type="text/css" href="style.css" />
<style type="text/css">
.box {
width: 640px;
height: 480px;
background: url("grafika/obraz.png") no-repeat center;
}
</style>
</head>
<body>
<div class="box"></div>
</body>
</html>
|
|