html - Spaces between divs and between the page -
this question has answer here:
- html default body margin 1 answer
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: 
when wanted show this: (edited via paint) 
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:
Comments
Post a Comment