Switch to full style
CSS code examples
Post a reply

X and Y background position

Mon Feb 27, 2012 11:18 pm

In this eample we set the background position as x and y starting point.

Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"
>
<
html xmlns="http://www.w3.org/1999/xhtml">

<
head>
  <
title>background-position-y</title>
<
style type='text/css'>
body {
  
background-imageurl("site_logo.gif");
 
  
background-position-x:400px
  
background-position-y:400px
  
background-repeatno-repeat;
 
  }
  

</
style>

</
head>

<
body>
<
p
    
Set the background x and y position
</
p>
</
body>
</
html>
 




Post a reply
  Related Posts  to : X and Y background position
 setting div background position     -  
 Set position of background image in pixels     -  
 right bottom background image position     -  
 Change background position when mouse over     -  
 Mouse position in C++     -  
 Get Mouse Position using JQuery     -  
 ORACLE/ SQL DBA this is a CTH position. No H1B’s     -  
 static vs fixed div position     -  
 Get the position of HTML element using JQuery     -  
 Slide automatically-specific speed to a determined position     -  

Topic Tags

CSS Background