How to hide an element outside the block



  • There's a picture, I've got to cover it up halfway, which means I'm half across the block where it is.

    How can I hide that part? Like a circumcised picture. введите сюда описание изображения



  • Added overflow: hidden a container that contains pictures and other content. Then everything outside the container will be hidden.

    Source: https://webref.ru/css/overflow

    hidden Only the area within the element is visible, the rest will be hidden.


Log in to reply
 


Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2