/    Sign up×
Community /Pin to ProfileBookmark

Background image spread 100%

Hi there…

I’d like to know if it’s possible to have a background image spread over the whole browser, like width: 100%; height:100%. No matter the size of the clients browser.

Thnx,

Leon

to post a comment
CSS

5 Comments(s)

Copy linkTweet thisAlerts:
@WebJoelJul 13.2006 — What is the image of? A 'seamlessly-tiling' image, yes, it can and will fill the background of a page, throughout all widths and heights.

But I assume that you infer a single image file of something specific, an item or logo or portrait image of some sort that would need to be stretched and pulled to fill the entire background real estate. This would gobble-up user-RAM and greatly slow-down the download time.

You might better have a smaller image that has transparent parts/edges, and either center it or position it pleasingly. That way, you aren't creating a 10-minute download page for those still using 56-K dial-up, -and besides, a smaller image can be viewed upon a greater number of browser-widths if positioned properly. See: http://ca.geocities.com/troublewp3/ to view an older webswite of mine with a background image of transparent edges and pleasing positioning ?

-Joel
Copy linkTweet thisAlerts:
@LinkMasterauthorJul 14.2006 — Hi Joel.

Thnx for your anwser. Yes, I'd like to have a background of a sky as my background. But you say I have to think of something else, because it's to heavy to load...?

?
Copy linkTweet thisAlerts:
@WebJoelJul 14.2006 — I was playing around with PaintPro and your idea and came up with a document that you might find inspired.

First, to create the sky, a gradient image of 6-pixels wide by a thousand-something pixels tall. This seamlessly-tiles to the background, suggestive of a sky with horizon-darkening as you look lower.

Next, some PaintPro-created clouds using the spraypaint tool, absolute-positioned (so that they'd be out of the doucment-flow), positioned by pixel-amount, and some by %-amount so that the latter will 'move' a little bit upon manual resizing of the browser.

Somehow though to make this work, I have to give the cloud images a negative z-index. This is a bad practice I have been told, as only IE understands negative z-index. Anyway, check out the attached ZIP'd file.

-Joel

[upl-file uuid=fccd263e-569e-4353-8a7e-e4c331c0c4ea size=23kB]cloudy blue.zip[/upl-file]
Copy linkTweet thisAlerts:
@LinkMasterauthorJul 16.2006 — Hi WebJoel.

Thnx for the zip. This is not what I'm looking for now, but it is interesting, maybe I can use the technique for another website.

Thnx for the help,

Leon ?
Copy linkTweet thisAlerts:
@Leo_01Jul 22.2006 — use a HTMl code to do it.
×

Success!

Help @LinkMaster 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.18,
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,
)...