Beispiel:CSS2 bottom.html

Aus SELFHTML-Wiki
Wechseln zu: Navigation, Suche
<!DOCTYPE html>
<html> 
	<head> 
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width, initial-scale=1.0">
		<link rel="stylesheet" type="text/css" media="screen" href="./Beispiel:SELFHTML-Beispiel-Grundlayout.css" />
		<title>bottom</title>
		<style>
			div {
				position: absolute;
				top: 100px;
				left: 350px;
				width: 350px;
				height: 380px;
				background-color: #F1F3F4;
			}
			img {
				position: absolute;
				bottom: 0;
			}
		</style> 
	</head>
	<body>
		<h1>untenbündige Hunde</h1>
		<main>
			<img src="http://wiki.selfhtml.org/images/3/31/Hund.gif" width="208" height="181" alt="Hund">
			<div>
				<img src="http://wiki.selfhtml.org/images/3/31/Hund.gif" width="208" height="181" alt="Hund">
			</div>
		</main>
	</body>
</html>