CodeIgniter Forums
add watermark in all my pages - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24)
+--- Thread: add watermark in all my pages (/showthread.php?tid=71897)



add watermark in all my pages - kvanaraj - 10-06-2018

watermark image not fit to my page correctly?

body {
background-image: url('../images/anna.jpg');
}


RE: add watermark in all my pages - InsiteFX - 10-06-2018

Code:
background-size: cover; /* Resize the background image to cover the entire container */

Code:
CSS Syntax
background-size: auto|length|cover|contain|initial|inherit;

Property   Values
Value       Description
auto       Default value. The background image is displayed in its original size    
length       Sets the width and height of the background image. The first value sets the width, the second value sets the height. If only one value is given, the second is set to "auto". Read about length units    
percentage Sets the width and height of the background image in percent of the parent element. The first value sets the width, the second value sets the height. If only one value is given, the second is set to "auto"    
cover       Resize the background image to cover the entire container, even if it has to stretch the image or cut a little bit off one of the edges    
contain       Resize the background image to make sure the image is fully visible    
initial       Sets this property to its default value. Read about initial    
inherit       Inherits this property from its parent element. Read about inherit