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

Home Forums JavaScript Need to add padding to top of headers Re: Need to add padding to top of headers


Thanks Josh! That works great! I originally started with addClass but when it didn’t work, switched to AppendTo…I had some other things wrong in the code though, which I have since fixed.

Once again, though I need this only to work for 980px and higher as Bootstrap appears to already add top padding to the headers when the nav bar is collapsed. I tried using some of the code from the other script you are helping me with (removing the Overlay function) but that didn’t work.