Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <style type="text/css">
- #box1{background-color: red;position:absolute;width:250px;height:175px;top:150px;left:200px;color:white;padding-left:2mm;padding-top:2mm}
- #box2{background-color: green;position:absolute;width:250px;height:175px;top:125px;left:400px;color:white;padding-left:2mm;padding-top:2mm}
- #box3{background-color: blue;position:absolute;width:250px;height:175px;top:250px;left:300px;color:white;padding-left:2mm;padding-top:2mm}
- </style>
- </head>
- <body>
- <h1> absolute Positionierung über CSS und <br />position </h1>
- <div id="box1"> RoteBox </div>
- <div id="box2"> GrüneBox </div>
- <div id="box3"> BlaueBox </div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement