CSS - właściwości clip


clip: shape

kod wynik kodu
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-2">
<meta http-equiv="Content-Language" content="pl">
<title>CSS - visual formatting</title>
<link rel="Stylesheet" type="text/css" href="style.css" />
<style type="text/css">
img {
  position: absolute;
  clip: rect(20px,400px,250px,50px);
}
</style>
</head>
<body>

<img src="grafika/obraz.png" width="640" height="480" alt="obraz">

</body>
</html>


clip: auto

kod wynik kodu
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-2">
<meta http-equiv="Content-Language" content="pl">
<title>CSS - visual formatting</title>
<link rel="Stylesheet" type="text/css" href="style.css" />
<style type="text/css">
img {
  position: absolute;
  clip: auto;
}
</style>
</head>
<body>

<img src="grafika/obraz.png" width="640" height="480" alt="obraz">

</body>
</html>