block-non-sibling-4.html (408B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <style type="text/css"> 5 #bar1 { 6 height: 20px; 7 background-color: green; 8 margin-bottom: 10px; 9 } 10 #none { 11 display: none; 12 height: 20px; 13 background-color: red; 14 margin-top: 30px; 15 margin-bottom: 40px; 16 } 17 #bar2 { 18 height: 20px; 19 background-color: blue; 20 margin-top: 20px; 21 } 22 </style> 23 </head> 24 <body> 25 <div id="bar1"></div> 26 <div id="none"></div> 27 <div id="bar2"></div> 28 </body> 29 </html>