Source Code:
(back to article)
Submit
Result:
Report an issue
<!DOCTYPE html> <html> <head> <style> #outer-div { width: 100%; text-align: center; background-color: #0666a3 } #inner-div { display: inline-block; margin: 0 auto; padding: 3px; background-color: #8ebf42 } </style> </head> <body> <div id ="outer-div" width="100%"> <div id ="inner-div"> Ich bin ein horizontal zentriertes div.</div> <div> </body> </html>