Results 1 to 6 of 6

Thread: CSS background position

  1. #1
    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.

  2. #2
    Join Date
    May 2008
    Posts
    2,297

    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.

  3. #3
    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; 
    }

  4. #4
    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.

  5. #5
    Join Date
    May 2008
    Posts
    2,389

    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.

  6. #6
    Join Date
    May 2008
    Posts
    2,012

    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.

Similar Threads

  1. Replies: 9
    Last Post: 22-12-2011, 04:58 PM
  2. Replies: 5
    Last Post: 27-04-2011, 09:05 AM
  3. Best way of observing you ads position
    By Ur Rehman in forum Technology & Internet
    Replies: 4
    Last Post: 20-01-2011, 11:35 AM
  4. Replies: 5
    Last Post: 03-12-2010, 11:29 PM
  5. Position of PHP Array
    By Xylina in forum Software Development
    Replies: 3
    Last Post: 29-06-2009, 05:27 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,750,362,004.22385 seconds with 16 queries