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

Home Forums CSS [Solved] Background-size height not changing

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • #203313

    When I have my background image I would like the img height to be around 620px I use background-size: 100% 620px; but not changing height

    What am I missing. It works if I just have height 620px;

    How come it works if have height: 620px but not background-size: 100% 620px; width is 100%


    Background-size does exactly what it says it does…it sizes the background…it doesn’t determine the size of the div.

    If you want that div to be 620px tall…that’s the height you have to use.

    Otherwise, the height of the div will be determined by it’s contents.


    Thanks for making me understand @Paulie_D

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘CSS’ is closed to new topics and replies.