Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <style type="text/css">
- .c3 {text-align:center; position:absolute; top:0; bottom:0; left:0; right:0;
- margin:auto; height:240px; width:70%;}
- .red
- {
- background-color:red;
- }
- .green
- {
- background-color:green;
- }
- .blue
- {
- background-color:blue;
- }
- .body
- {
- margin:0;
- }
- </style>
- </head>
- <body class="body blue">
- <div class="c3 green">
- <div class="red">Hello I am centered</div>
- <img src ="ghosts_on_pants_by_ginseng-d3fkrls.jpg" class="c3"/>
- </div>
- </body>
- </html>
Add Comment
Please, Sign In to add comment