Skip to content

Instantly share code, notes, and snippets.

@luizfelipeleite
Created April 25, 2024 05:31
Show Gist options
  • Save luizfelipeleite/7817741b71bc59c42569721e70fbad94 to your computer and use it in GitHub Desktop.
Save luizfelipeleite/7817741b71bc59c42569721e70fbad94 to your computer and use it in GitHub Desktop.
width: 100vw; /* Define a largura da imagem como 100% da largura da tela */
margin-left: calc(-50vw + 50%); /* Centraliza a imagem horizontalmente */
margin-right: calc(-50vw + 50%); /* Centraliza a imagem horizontalmente */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment