/    Sign up×
Community /Pin to ProfileBookmark

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>

to post a comment
CSS

2 Comments(s)

Copy linkTweet thisAlerts:
@ketancoauthorMay 22.2009 — 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...
×

Success!

Help @ketanco spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...