Toggle navigation
☰
Home
HTML
CSS
Scripting
Database
<!DOCTYPE html> <title>Example</title> <style> .outer { border: solid; width: 280px; } .inner { background: gold; margin-left: 40px; } </style> <div class="outer"> <div class="inner">This text has a margin of 40 pixels on its left side. It is nested within a 'div' with a border to make it easier to see the effect of the margin.</div> </div>