mardi 21 juin 2016

Img tag occupying all the page


I am having a company logo that I want to set towards top right. My image is looking nice only when width is 300px and height is 500px.

When I change my div or img tag position the image expands. Using span tag instead of div would be right idea ?

I have tried couple of solutions in stackoverflow but none of them worked.

div #container{
position: relative;
}

img #img1{
position: absolute;
top: 0px;
right: 0px;
}

Aucun commentaire:

Enregistrer un commentaire