I am currently developing a website using Twitter Bootstrap and I need the content in my div
to be located directly below my fixed
header. The issue I'm encountering is that due to the position:fixed
property of the header, it is removed from the layout's flow causing my div to collapse and appear without any height. I prefer not to specify a fixed height for the header since its size may vary based on the content inside.
You can view my code here: http://jsfiddle.net/7nSss/1/
I found a solution on Stack Overflow about positioning an element under a fixed div, but I would like to avoid using margin
or padding
because the height of my fixed header might change.