[Support request] Section Size?

Home Forums Support Section Size?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #225307
    Jeremy

    This may be a really stupid question, but since section backgrounds rely on the width of the section, is there any way to calculate how tall a section is so that an image will display fully? I can’t seem to get it right. I know it can vary based on the content inside, so there may be no easy way besides trial and error.

    Thanks!

    #225356
    Tom
    Lead Developer
    Lead Developer

    You would need to use javascript, and that can be a little jumpy.

    For example, if you gave your section a class of my-cool-section:

    jQuery( '.my-cool-section' ).outerHeight() would return the height of the element.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.