A live demo of the site can be found here: http://line25.com/wp...demo/index.html
For testing and understanding purposes, I added some background colours, and removed the display:block to see what happens.
With Display Block

Without Display Block

My basic understanding of display:block is that it takes up the full width available, and has a line break before and after.
So my questions are, with my own thoughts...
- Why isn't the width factored in when you have display: block set?
- Why without display:block does the height exceed the containing element?
- Why does the navigation bar appear to have shifted down slightly when display: block is set?
- Couldn't the same result be achieved by using left and right padding, instead of width? Any reason why you might opt for this method?
Many thanks,
This post has been edited by Konnor: 02 February 2012 - 10:34 PM
Help















