Site Owners Forums - Webmaster Forums

Site Owners Forums - Webmaster Forums (http://siteownersforums.com/index.php)
-   HTML / DHTML (http://siteownersforums.com/forumdisplay.php?f=7)
-   -   Image size 100 % - CSS HELP (http://siteownersforums.com/showthread.php?t=145398)

george.web13 09-11-2014 03:31 AM

Image size 100 % - CSS HELP
 
Hi!

I try to do this:

I have an element, and i want the background image to be all over the background.

e.g.



#mydiv{width:100%; height:100%;background:url(images/image1.jpg) no-repeat; background-size:cover;}

If i want, to do this:





#mydiv{width:100%; height:100%;}
#mydiv img{}

How can i make the same effect, with the image, to be cover all over the div????
But, without background-size:cover. Is it possible???

yasar 05-27-2015 06:52 AM

background-size {100% 100% ; no-repeat;}
Above code make a 100% background size


All times are GMT -7. The time now is 02:46 AM.


Powered by vBulletin Copyright © 2020 vBulletin Solutions, Inc.