Jump to content

Sizing de imagens em CSS


novat
 Share

Recommended Posts

Olá!

Tenho uma página que recebe, através de um form, o link de uma imagem e, ao dar ENTER, surge uma página que exibe essa imagem. Acontece que eu quero que a imagem mantenha o seu tamanho original.

Uso isto:

            #logo{

overflow:hidden;

                width: 100%;

                height: 100%;

                margin:6px auto;

                background:transparent url("<?php print($_GET['t']) ?>") center top no-repeat;

                text-indent:-9999px;

            }

Mas parece haver um problema com a altura da imagem, pois esta fica sempre muito pequena.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. 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.