/    Sign up×
Community /Pin to ProfileBookmark

Stationary Images

Is there a way to make multiple images on a page stationary without setting them as a single background?

to post a comment
CSS

4 Comments(s)

Copy linkTweet thisAlerts:
@SiddanNov 03.2005 — <img src="image1.jpg"><img src="image2.jpg"><img src="image3.jpg"> .... <img src="image20.jpg">
Copy linkTweet thisAlerts:
@ray326Nov 04.2005 — I guess it depends on your definition of stationary. A couple of variations on the theme would be.

img { position: absolute; top:10em; left:10em; }

img { position: fixed; top:10em; left:10em; }
Copy linkTweet thisAlerts:
@jerseydubsauthorNov 04.2005 — I guess it depends on your definition of stationary. A couple of variations on the theme would be.

img { position: fixed; top:10em; left:10em; }[/QUOTE]


ok. this is the effect i am looking for. now, if i want to have one image at the top left of the page and one on the middle left of the page can i do that in one class? i know i can make it happen in two classes but one of the things i am most interested in CSS for is the ability to streamline it so i am just curious if there is a better way. here is what i have so far:

img.left

{

display: block;

position: fixed;

margin: 0 0 100px 0;

}
Copy linkTweet thisAlerts:
@jerseydubsauthorNov 04.2005 — nevermind. i just realized that i can set the <div> that they are in to a fixed position. :p thanks for the help.
×

Success!

Help @jerseydubs 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 5.21,
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: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

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

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...