Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to make css image overflow the div its in

Tags:

html

css

I have a image inputted in the css with the following code:

.imgtemp { 
          float:right; 
          top:0px; 
          left:0px; 
          overflow:visible; 
          width:100%;
        }

I have also added the div tag to the page so its displaying, but the image is wider than the div due to the design. How can I make it overflow the divs its in to get it correct.

Thanks.

like image 361
James Wildi Avatar asked Dec 26 '22 17:12

James Wildi


1 Answers

You should place overflow:visible on your div, not on an image.

like image 142
Viktor S. Avatar answered Dec 29 '22 09:12

Viktor S.