Switch to full style
HTML code examples
Post a reply

Set position of background image in pixels

Tue Nov 08, 2011 11:46 pm

Set position of background image in pixels
Code:

  
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
    <head>
        <title>Set position of background image</title>

<
style type="text/css">

body {
 background-image: url(1.jpg);
 background-position: 100px 75px;
 margin: 5px; 
}
 
</style>

    </head>
    <body>
    <center>
<
p>
  This is an example of changing the background image position.!!!
</
p>

    </center>
     
  
</body>
</
html>
 




Post a reply
  Related Posts  to : Set position of background image in pixels
 right bottom background image position     -  
 Get image pixels Values in ITK     -  
 X and Y background position     -  
 setting div background position     -  
 Change background position when mouse over     -  
 Move image in front of a background image     -  
 No repeated background image     -  
 Table background image problem     -  
 Repeat background image on y axis     -  
 Start background image from its bottom     -  

Topic Tags

CSS Background