Forums

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

Home Forums CSS [Solved] What is controlling the height of this section? Reply To: [Solved] What is controlling the height of this section?

#200122
will0220
Participant

Hi dmatranga, it looks like that height is being generated by JavaScript, as it’s inline and you’ll see it change when you resize the window. Unfortunately the only sources I could find were minified so I can’t help you there. I’m not sure if you can use a pure CSS3 solution, but on the section .bgcontainer-1 you can add the following to constrain your background:

background-size:cover;
background-position:center top;

If you can’t find where in the JavaScript the height is being set, then set both the min-height and max-height of both .bgcontainer-1 and #first-container instead of the height. If you’re desperate, you could also set your height declaration on those sections to !important in the CSS. Hope this helps!