Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Actually, you can use absolute positioning to achieve what you want, in a fixed-width layout. You use CSS to add padding to the top of the content which is equal to the height of your navbar/header and give the navbar/header position absolute and top 0.

I haven't figured out how to do this with responsive layouts. It's never worked well for me but I will come up with a solution one day.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: