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; margin-right: 40px; } </style> <div class="outer"> <div class="inner">This text has a margin of 40 pixels on its right side. It is nested within a 'div' with a border to make it easier to see the effect of the margin.</div> </div>
Preview