dcsimg
www.webdeveloper.com
Results 1 to 3 of 3

Thread: background positioning not working

  1. #1
    Join Date
    May 2008
    Posts
    298

    background positioning not working

    I can not adjust the position of the main background for my webpage. The website is robotdukkani.com. I wanted to move the main blue background to 100px left, so here is my css. but, whatever value I write to top or left, it does not move the position of the blue background. How can I make the main blue background to start where I want?
    .mainarea
    {
    z-index:-6;
    position:absolute;
    top:0;
    left:100;
    width:900px;
    height:1300px;
    }
    and... here is the html on my index page.
    <div class="mainarea">

    <img src="pictures/mainbackgr.jpg" width="100%" height="100%">

    </div>

  2. #2
    Join Date
    May 2006
    Location
    the netherlands
    Posts
    454

  3. #3
    Join Date
    May 2008
    Posts
    298
    ok...thanks for the answer but I discovered the mistake in my code. i just forgot to put px values to top and left... and ...yours work too...

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles