HTML FORMS /
Alignment of Div
/
Div at center of other Div
<!DOCTYPE html> <html> <head> <style type="text/css"> #outer { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: #009688; } #inner { width: 50%; height: 50%; top: 25%; margin: 0 auto; position: relative; background: #ffeb3b; } </style> </head> <body> <div id=outer> <div id=inner> </div> </div> </body> </html>