<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <meta content="text/html; charset=UTF-8" http-equiv="content-type"> <title>divs</title> <style type="text/css"> .haupt { background-color: #ffccff; width: 400px; height: 400px; } .unter1 { margin: 5px; padding: 5px; background-color: #9999ff; width: 200px; height: 200px; position: relative; } .unter2 { margin: 5px 5px 5pc; padding: 5px; background-color: red; width: 150px; height: 150px; position: relative; } </style> </head> <body> <div class="haupt">Text im Hauptteil <div class="unter1">Text im Unterteil 1 </div> <div class="unter2">Text im Unterteil 2 </div> </div> </body> </html>