Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jun 9th, 2012  |  syntax: None  |  size: 0.30 KB  |  hits: 13  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Why does the padding of one element affect the margin of another?
  2. <header>  
  3.   <div id="notifications" class="left">notifications</div>
  4.   <div class="right">
  5.     <a href="account.aspx" id="userinfo"><span class="dropdown">▾</span> username</a>
  6.   </div>
  7.   <div style="clear: both;"></div>
  8. </header>