1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
<!DOCTYPE html> <meta charset="utf-8" /> <title>Element partially hidden by other element</title> <style> div { height: 100px; width: 100px; } #partial { background: yellow; } #other { background: blue; margin-top: -50px; margin-left: 50px; } </style> <div id="partial"></div> <div id="other"></div>