Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Align nav bar vertically – help needed Reply To: Align nav bar vertically – help needed

#234807
willyledev
Participant

This is my first time on css-tricks so bear with me.

This white space you are experiencing is due to the inherit css on the h2 tag. You can remove the white space between the header and the content by setting the top margin of the h2 to 0px. Also, if you don’t want the heading to flush against your nav bar. You can add padding to the top of the h2. The css below will solve your problem.

h2{
margin-top: 0px;
padding-top: 20px;
}