/    Sign up×
Community /Pin to ProfileBookmark

Background…

I have image as a background and I want it to be align to the right, at the bottom and I want to be able to scroll the text over it.

That’s what I got so far:
.main {
background: url(‘BG.jpg’) no-repeat left bottom;
margin: auto;
text-align: center;
width: 740px;
height: 500px;
padding: 0px;
margin: 0px;
}

I can’t the image to be align to the bottom and I can get it that way so I’ll scroll the text over it. What am I missing?

Thanks!

to post a comment
CSS

4 Comments(s)

Copy linkTweet thisAlerts:
@TriumphJan 29.2005 — [i]Originally posted by weee [/i]

[B]background: url('BG.jpg') no-repeat left bottom;[/B][/QUOTE]

Try this:

background: url('BG.jpg') no-repeat 0 100% fixed;
Copy linkTweet thisAlerts:
@GreyDogJan 29.2005 — background-attachment: fixed;
Copy linkTweet thisAlerts:
@TriumphJan 29.2005 — [i]Originally posted by GreyDog [/i]

[B]background-attachment: fixed; [/B][/QUOTE]
LOL!
Copy linkTweet thisAlerts:
@GreyDogJan 29.2005 — [i]Originally posted by Triumph [/i]

[B]LOL! [/B][/QUOTE]


..wassofunny!

it works.

AMOF it was the only way I could get a fixed bg to work in both IE & FF.
×

Success!

Help @weee 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.2,
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: @meenaratha,
tipped: article
amount: 1000 SATS,

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

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