Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read SiteMap

Tags: , , ,

Sponsored Links



CSS background position

Software Development


Reply
 
Thread Tools Search this Thread
  #1  
Old 15-12-2009
Member
 
Join Date: Aug 2009
Posts: 40
CSS background position

I wnat to know the information about the css background position. What are the different syntax use to define css background position. I also want some example which explain the declaration of css background position.
Reply With Quote
  #2  
Old 15-12-2009
Zecho's Avatar
Member
 
Join Date: May 2008
Posts: 2,267
Re: CSS background position

With CSS, you are able to set the background color or image of any CSS element. The background position property is an old css property that was conceived in a time when the web wasn't all that visual. You can have a background image repeat vertically (y-axis), horizontally (x-axis), in both directions, or in neither direction.
Reply With Quote
  #3  
Old 15-12-2009
Member
 
Join Date: Jan 2009
Posts: 199
Re: CSS background position

CSS background-position :
Code:
body
{ 
background-image:url('s1.gif');
background-repeat:no-repeat;
background-attachment:fixed;
background-position:center; 
}
Reply With Quote
  #4  
Old 15-12-2009
Member
 
Join Date: Dec 2008
Posts: 177
Re: CSS background position

The background-position CSS property sets the initial position of any background image that has been set that means the background-position property sets the starting position of a background image. background-image: url(URL) e.g. url(images/im1.jpg) : Specifies an image to display in the background of the element.
Reply With Quote
  #5  
Old 15-12-2009
opaper's Avatar
Member
 
Join Date: May 2008
Posts: 2,362
Re: CSS background position

For CSS properties, you usually translate them to Javascript by substituting "camel case" for CSS' dashes. Background-image is the property of CSS that inserts a background image. To add background image, you first have to have an image that you would like to appear on your page.
Reply With Quote
  #6  
Old 15-12-2009
Member
 
Join Date: May 2008
Posts: 1,990
Re: CSS background position

The background-position property defines the x and y (horizontal and vertical) position of the background image. Syntax:background-position: <value>.To make the image horizontally repeated, use the “repeat-x” value next to the property background-repeat then separate them with colon. The background-position property gives the initial position of a specified background image. This property may only be applied to block-level elements and replaced elements.
Reply With Quote
Reply

  TechArena Community > Software > Software Development


Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "CSS background position"
Thread Thread Starter Forum Replies Last Post
Desktop Background or Picture position in Windows 7 won't save Vrushabh Operating Systems 9 22-12-2011 04:58 PM
Picture position does not work hence I want to change my desktop background in personalization Jaiya Customize Desktop 5 27-04-2011 10:05 AM
Picture position does not work while changing desktop background in personalization foraman Customize Desktop 5 03-12-2010 11:29 PM
How to fix div tag at a specific position Leiff Software Development 5 04-03-2010 07:23 PM
Position of PHP Array Xylina Software Development 3 29-06-2009 06:27 PM


All times are GMT +5.5. The time now is 05:25 AM.