Beispiel:CSS3 background-clip.html

Aus SELFHTML-Wiki
Wechseln zu: Navigation, Suche
<!DOCTYPE html>
<html lang="de">
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<link rel="stylesheet" media="screen" href="./Beispiel:SELFHTML-Beispiel-Grundlayout.css" />
	<title>background-clip</title>
	<style>
div {
	background-color: gold;
	border: 1em dashed red;
	height: auto;
	margin: 1em;
	outline: thin solid black;
	padding: 1em;
	width: 20em;
}
#one   {background-clip: border-box;}
#two   {background-clip: padding-box;}
#three {background-clip: content-box;}</style>
</head>
<body>
	<h1>Verwendung von <code>background-clip</code></h1>

	<h2>Hintergrundbereich festlegen</h2>
	<div id="one">background-clip: border-box;</div>
	<div id="two">background-clip: padding-box;</div>
	<div id="three">background-clip: content-box;</div>
		
</body>
</html>