Full screen background image with multiple style sheets
Posted: 23 September 2009 04:46 AM   [ Ignore ]
Newbie
Rank
Total Posts:  1
Joined  2009-09-23

I need to use a stretched full screen background image. This I can do using these methods:

http://webdesign.about.com/od/css3/f/blfaqbgsize.htm
http://www.cssplay.co.uk/layouts/background.html

The problem is that I also need to switch style sheets.
http://www.dynamicdrive.com/dynamicindex9/stylesheetswitcher.htm

This also works fine on it’s own but because the image is defined in the <body> and not the style sheet you can’t change the background image when you change style sheets.

What I would like to do is define the background image source in the external css file something like this:

body {
    background
-image:url(images/bg.jpg);

which allows for a different background image with each style sheet however the stretched full screen image no longer works.

Is there a way to create a full screen background image where the image source is defined in the external css file and not the html code?

Profile
 
 
Posted: 15 July 2010 09:55 AM   [ Ignore ]   [ # 1 ]
Newbie
Rank
Total Posts:  1
Joined  2010-07-15

•background-color
•background-image
•background-repeat
•background-attachment
•background-position

====================
agree~~~

Profile
 
 
Posted: 18 November 2010 02:00 PM   [ Ignore ]   [ # 2 ]
Jr. Member
RankRank
Total Posts:  39
Joined  2010-10-06

CSS2 doesn’t allow you to stretch background images (images specified using the CSS background-image property).

Profile
 
 
Posted: 03 December 2010 09:43 PM   [ Ignore ]   [ # 3 ]
Newbie
Rank
Total Posts:  1
Joined  2010-12-03

You’re out of luck because that’s not a feature available at the moment.


————————————
Biztalk Healthcare
Web design Harrisonburg VA

Profile