February 5, 200917 yr Hey guys I'm pretty new at this so any suggestions will be helpful. When I position my site there's always cca 5px between the top of the page an the wrapper. How do I put it on the top?Tnx
February 5, 200917 yr html, body {margin:0; padding:0} Put that at the top of your css. What's happening is the browser already has predefined style rules, unless you overwrite them, it will implement them. The main problem with this however, is different browsers have different default styles (which can mean webpages display slightly different depending on the browser and it's defaults). I'd recommend Taking a look here http://meyerweb.com/eric/thoughts/2007/05/01/reset-reloaded/ That little snippet with overwrite all browser styles to allow you to start from scratch. Just delete the elements you don't need.
February 5, 200917 yr Hey guys I'm pretty new at this so any suggestions will be helpful. When I position my site there's always cca 5px between the top of the page an the wrapper. How do I put it on the top?Tnx You must set top value of body tag to 0 (zero)...something like: body { margin: 0 0 20px 0; padding: 0; } If You work in Dreamweaver select Page properties panel and set body top margin to 0
Create an account or sign in to comment