Web.QHMIT
.com
Toggle navigation
☰
Home
HTML
CSS
Scripting
Database
Run
<!DOCTYPE html> <title>Example</title> <style> .outer { border: solid; width: 280px; } .inner { background: gold; width: 50%; margin: auto; } </style> <div class="outer"> <div class="inner">This text has a margin of 'auto'. It is nested within a 'div' with a border to make it easier to see the effect of the margin.</div> </div>
Preview