html - Spaces between divs and between the page -


this question has answer here:

okay sorry guys if stupid question, i've done best search possible solution or similar questions , while there questions regarding <div> spaces, solutions don't work when try implement it.

so illustrate problem. page shows this: enter image description here

when wanted show this: (edited via paint) enter image description here

here code body:

<body>     <div id="site-wrapper">         <header>             <nav id="header-panel">                 <p>welcome <?php echo $_session['name']; ?>!</p>             </nav>         </header>          <div id="core">             <div id="left-nav">                             </div>             <div id="main-core">              </div>         </div>          <footer>          </footer>     </div> </body> 

now there nothing special going on in css, colors default behavior of arrangement this. i've tried changing margin, , display types of divs there's no change , still love spaces.

header {     background: #ffaa99;     font-size: 1.5em;     color: #333;     margin: 0; padding: 0; }  div{     margin: 0; padding: 0;     /* border: solid 1px black; */ } #left-nav{      background: #e0e0e0;     display: inline-block;     width: 250px; } 

browsers have default style sheets includes default margins, etc. practice include css reset file removes of defaults expected behavior.

there number of sites provide code you, including:

http://cssreset.com/


Comments

Popular posts from this blog

java - pagination of xlsx file to XSSFworkbook using apache POI -

Unlimited choices in BASH case statement -

apache - How do I stop my index.php being run twice for every user -