Jump to content

Recommended Posts

Posted (edited)

Uite aici un exemplu:

Spoiler

HTML:

<div></div>

CSS:

div {
  width: 400px;
  height: 200px;
  position: absolute;
  background: red;
  top: 50%;
  left: 50%;
  right: 0;
  bottom: 0;
  transform: translate(-50%, -50%);
}

 

Copie asta într-un fișier și dă resize :D Seară bună!

Edited by Daizuke

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.