Sure, divs are purposely designed for layout. I then found another approach which works as far as I can tell in all browsers, does not use JS or Flash and answered my requirements. Finally I found a good tutorial as well. Excellent resource. In the demo, in IE8 at least, the mousewheel only scrolls the content when the cursor is inside the white text container, and it’s somewhat sluggish at large resolutions. Is there any way to change the background on this element dynaically? I used it now and works fine on http://optikaikeret.hu :) Specify the size of a background-image with "auto" and in pixels: The background-size property specifies the size of the background images. But it has some positioning problems in ie7 & ie6.. Hi, is it possible to change the background image with javascript using the first method (only css) ? There is also a vertical scrollbar in Opera 10b3, but it’s for the text – however, if I scroll down (without clicking the text first) it will scroll the image instead of the text. change bg, EDITOR’S NOTE: Sure, with JavaScript you could watch for a click on that anchor link, select the HTML element, and apply different background. If this is no concern to you, CSS3 Cover is a nice option for filling the browser with your background image. Hi there, I’m going to use the CSS3 option, and really want to make the background image a link, anyone know how I could achieve this? so is this work on mobile apps too for the background? background-position: 0px 0px; Yo, there is a mistake in your description!! It’s a mix of CSS and the use of Tables. For full screen images or websites with full width images I always make them 1920×1280. The especially clever bit is using a media query to check if the browser window is smaller than the image, and using a combo percentage-left and negative left margin to keep it centered regardless. I’m photographer and sometimes I use to develop some photography websites, as former graphic designer. It does not resize the image. Always cool to see techniques “in the wild.”. Its works fine but in IE it shows some errors. … I love this solution. nice tuts, thanx. So what about the video? CCS3 Way Rulz! It seems that I’m asked to do this technique on a little less than half my projects anymore. This means you’ll call a PHP script and have GD resize the image every single time the window is resized! <3. In the following example, as a background-size value, we use “cover”, which scales the background image as much as possible so … see my css3 solution implemented at stage-center.org. BUT! Is it possible to do that? 0. Each value can be a , a , or auto.To specify the size of multiple background images, separate the value for each one with a comma. overflow:hidden; html{ In technique 2: If you set the img.bg bottom: 0 instead of top: 0, you can anchor the image to the bottom of the browser window instead of having it anchored to the top. It solved all my “oh no!-no-image-background” problems. Can i ask if is work on jquery mobile too? bottom:25%; background-size와 고정값 150 픽셀로 목표를 달성할 수 있습니다. This post was originally published on August 21, 2009 and is now updated as it has been, This comment thread is closed. i don’t know how to reach the html-tag. So basically like the Technique number 2, but without fixed positioning on the parent? Very cool trick. thank you so much for this My mistake position fixed on body element didn’t work used this instead: Hi Chris… I interest with this topic. CSS Technique 2 works for me! Looks good only for proprietary hardware inside one of Microsoft ‘partner’ 1 million devices big corp installation. 100px 5px) Percentages (e.g. I used this on the body element to fix IE8 with a conditional css file. 2982x2808의 커다란 Firefox 이미지를 가지고 있다고 해보겠습니다. Just set the fullscreen mixin to a Class and you can change it. The cover value tells the browser to automatically and proportionally scale the background image’s width and height so that they are always equal to, or greater than, the viewport’s width/height. This is an automatic way to fill the complete container, no matter the image’s aspect ratio: background-size: cover; In this example, notice how the image covers the container. Was inspired by it originally.. Hmmm, on FF3.5, if I press “space” the whole page scrolls…. }); And I success to load it each time I change the browser scale. A lot of times you have to sacrifice image quality for download speed when optimizing the jpeg. div { background-image: url('background.jpg'); The cover value tells the browser to automatically and proportionally scale the background image’s width and height so that they are always equal to, or greater than, the viewport’s width/height. I fixed the space bar issue by appending a hidden input with javascript and setting the focus to that. } Is that 1600 px or less? background-repeat:no-repeat; A table is fine if you like to poop all over semantics and proper use of HTML elements. One thing I have found, though, is that older IEs (IE6 and 7) sometimes crash if you’re using filters excessively. Our purpose is to add image as our background, So lets give the location of the image to our CSS. ugh! The background of my Tumblr page. Blatant incorrect use of tables have generated a lot of hate and rightly so. The source for this interactive example is … The background-size property is specified in one of the following ways: 1. margin:auto; If you had a city-scape or other bottom-designed image, this would become very important. In Chrome 2.0.172.39 i see background at top and bottom of page (on Your example and on http://ringvemedia.com/), and in Opera 9.64 i see scrollbars on Your example. I tried using the css3 method on a block that had jquery and angular controlling it’s size. I want the background image to always fit in width, maintain aspect ratio and center. I can not make it stretch on some shorter pages. the image, second value: height), and the multiple background syntax (separated 3. You learned from our CSS Colors Chapter, that you can use RGB as a color value.In addition to RGB, you can use an RGB color value with an alpha channel (RGBA) - which specifies the opacity for a color.. An RGBA color value is specified with: rgba(red, green, blue, alpha).The alpha parameter is a number between 0.0 (fully transparent) and 1.0 (fully opaque). I hope I was able to explain my problem and that you have a solution for it. body { We specify the size of the first background image with "contain", My client will be very happy, thank you! And these are some damn nice css tricks! top:25%; I have used the jquery method which worked just fine for me. Using a width value only, in which case the height defaults to auto. I can see the text is under the image, because when I changed in the css top: 0px to top:60px suddenly text was revealed, used second trick but now if i m writting anything on it doen appear. JavaScript might need to get involved, unfortunately. They showed one here – http://ringvemedia.com/introduction. Fills entire page with image, no white space. The background-size property lets you to determine the size of the background image. Just something to be watchful for. CSS3 cover does a good job of proportionally filling the background with the image. I guess all the other people were taking the code from the demo site, where it was correct, that’s why nobody else noticed it. This is seriously awesome thanks! background: url(/testSite/wp-content/themes/BareBones/images/bg3.png) no-repeat center center fixed; Not working. [Here is a Dropbox link with screenshot of this. Do you have a site where you have used this method? Is there a finite version for older versions of IE, or some special script I can implement to make the background wallpaper more stable? While using W3Schools, you agree to have read and accepted our, Default value. The list of background-size values. I was sort of under the impression that you would dynamically select a particular image depending on on the client browser size. Anyone had an issue with this and come up with a solution? I ran onto a problem and I would like to ask for help. 5. Any image excess is cropped. This is awesome! }. If it is higher, we can set only the height to 100% and know that it will fill both the height and width. different z-index values to the end of the alpha statement in the css…. thank you!! The NorthFace site has similar functionality but it looks like they use a flash solution. I used the jQuery method, but modified it to keep the image centered at all times: Is it possible to have a multiple full page images, that are background images? Nice effect Chris, I’ll definately get some use out of this one. One on top, one on bottom and middle for repeat-y. I love Joe’s solution and use it all the time and think that you could incorporate it into this idea with great effect. The problem with tables was lots and lots of them everywhere, for no reason. Peter VanWylen wrote in to say that if you add the image via JavaScript, the img needs to have width: auto; and height: auto; to work in IE 8, 9, or 10. All gists Back to GitHub Sign in Sign up Sign in Sign up {{ message }} Instantly share code, notes, and snippets. background-size: cover; } fly wheels)? Sets the width and height of the background image in percent of the parent element. This background image looks pretty nifty: I love this! Thanks, I had to tackle this problem myself recently and have come up with a fairly decent solution that is standards-compliant, uses minimal code (just one extra div), doesn’t use flash and seems to work in all browsers. So far I’ve tried adding: So it means… javascript. The first value sets the width, the second value sets the height. A little more insight in terms of implementation would help me understand. There is no rescaling in that case but at least there is an absolute control over the background image quality. 3. If only one value is given, the second is set to "auto", Resize the background image to cover the entire container, even if it See this article. Only Firefox and IE work fine. CSS-Tricks is created by Chris and a team of swell people. It makes you sort of irrational. I will have a content in center and the background shouldn’t move if the resolution is lower as original. The goal here is a background image on a website that covers the entire browser window at all times. I think this space is more likely to appear on a user’s screen then when there is white when the window is bigger then 2560px (with a big image and overflow:hidden) – the latter is not the case in this demo, but is here. Let's consider a large image, a 2982x2808 Firefox logo image. JL García wrote to me saying he needed to add height: 100%; and overflow: hidden; to the html element to get it to work. Then use the following background properties to center and scale the image perfectly: Note: To make sure that the image covers the whole screen, you must also apply height: 100% to both and : the Save print etc. Somewhere, eh…, Wow Chris this is awesome just what I’ve been looking for as my site jinks about a bit thanks very much. Nice work Chris, Full page backgrounds are something that I have always been intrigued by, but never really got my head around, due to different image dimensions, screen resolutions etc. CSS background - Shorthand property To shorten the code, it is also possible to specify all the background properties in one single property. Thanx for thip great tip! width:100%; I even tested it out with EW3 and it works there…any ideas? I use this >>> The solution is to add this to the CSS:#bg { position: fixed; }This works in all browsers. The Image bar comes up on IE 6 if you hover over the image. Seems to work well, thanks :-). This is really great! try it on this page, or google news, or where ever. I will be forever thankful. in the demo site: LT. How do I achieve this result?? With min-height:640px and min-width:1024px for a 2560×1600 pic it fits almost any resolution/window size decently… *hiding*, Try top:0px;bottom:0px;left:auto;right:auto. html, body, #bg, #bg table, #bg td, #cont { Without it / With it. thanks for this grea tutorial, what are the image dimensions supposed to be ? Yet, frankly I’m hesitate to apply the technique into my site. I’ll be attempting the ‘Awesome, Easy, Progressive CSS3 Way’. While Firefox shortly renders the page with a background picture and then redirects to your 404 error page…. This changes my approach to design significantly. It should be possible right? The pic is 1600px wide. The list of background-size values. Here is an example: SOUND Phuket http://www.soundphuket.com. This doesn’t account for centering, but you could definitely alter this to do that. This whole idea becomes a lot easier (from a CSS perspective) if we know if the aspect ratio of the image (inline we intend to use as a background) is larger or smaller than the current aspect ratio of the browser window. CSS Technique 2 works for me. As in, don’t load some huge 1900px wide background image for an iPhone. We also set a min-width of the width of the image so that the image never gets smaller than it actually is. It had some cleverness, but wasn’t quite as good as either CSS technique now presented above. Full size background image using CSS cover in mobile devices - fullscreen.css. Specify the size of a background image with percent: Specify the size of a background image with "cover": Specify the size of a background image with "contain": Here we have two background images. background-image:url(images/bg1.jpg); Fullscreen Video Background. when the window is not “wide”, the photo doesn’t deform showing the white background here in the demo and the “loading” background on the credited site. Using the keyword values contain or cover. First of all, thanks for the great article. Localized (hopefully) web delivery issues mostly effecting (what else) IE? That was taken in the few minutes while I was working on a new idea to fix the focus/scrolling problem…. The background of any page or element plays a crucial role in setting the theme of the content within it as well as shifting the focus to or highlighting the foreground. On the Demo, when the window is less then 1125px wide there IS white space on top and bottom. In JS-disabled browsers, a 1280px wide image will probably look decent, in all other browsers there will be a perfect image with no (or as little as possible) upscaling while wasting as little bandwidth as possible. I understand that the background-size: cover property in CSS makes the background image as large as possible so that it covers the entire screen. I would like to keep the top of the image fixed (so it doesn’t disappear on wide screens), what method should I use and what changes (if any) should I make to the code? This is also the case for whatstheweather, but then only in the right-hand side. The best way to stretch an image to fit the background of an element is to use the CSS3 property, for background-size, and set it equal to cover. We use cookies to improve user experience, and analyze website traffic. This is called a shorthand property. Very nice. I have seen this before too. { I find its the best size to use across the board, looks good on a 15″ laptop but still looks good on a 27″ monitor. Thanks. We’ll use the html element (better than body as it’s always at least the height of the browser window). Looks perfect on my 1440px wide screen, but I’ve also tested it on a 1920px wide one and it looks completely acceptable this way. Here we use an inline element, which will be able to resize in any browser. console.log($bg.width() + " " + $bg.height()); / This image will be displayed fullscreen / Really! background-position:center; background-size. I think, i will be use this trick on many sites;) This trick work on ie 5.5. What are the earliest inventions to store and release energy (e.g. One rather simple way to handle this is to put an inline image on the page, fixed position it to the upper left, and give it a min-width and min-height of 100%, preserving it’s aspect ratio. For that, use the CSS background and background-size properties. I suppose it’s a focus problem; anyway for accessibility it would be better to have the focus on the center element. Numbers followed by -webkit-, -moz-, or -o- specify the first version that worked with a prefix. Just curious. There’s a IE filter that can make this CSS3 trick work in any IE version: http://cookbooks.adobe.com/post_Scale_Background_image_to_browser_size-17590.html. Man, the Opera users really come out of the woodwork when you post a technique like this. The background property is specified as one or more background layers, separated by commas.The syntax of each layer is as follows: 1. Being sort of new at this, any ideas how this site is made? We create a simple HTML5 video element with loop, autoplay and muted attributes and place it inside a container element. margin:0; http://www.type3digital.com/, Yup that question stayed in my head too…:D. I will be using this with one of my clients. I think this is very well done though I do have a theory…. I second @GreLI on his suggestion, even though this does not center the image it is still a nice IE7 fallback. a) doesn’t resize with the window Thanks, great read. http://t2.gstatic.com/images?q=tbn:ANd9GcRd66tQRZBspVVECmBHu4pMluIer0Zl6lhzcfd-75xlp-_kIus2 I’ve been fiddling around with my html for a VERY long time now and this finally got everything working, Thanks for this great article! To do this, we can use a fixed background-sizevalue of 150 pixels. Fullscreen Video Background. In fact, if I middle click on the page, I can scroll to reveal white space both on the y- and x-axis in Opera, Firefox 3.5, Chrome, Safari4 and IE8. Instead, the background image is shrunk so that it is entirely visible within the narrow region available and scaled to the width, and then the rest of the page below it is simply the background color. Will definitely be using this for a photo gallery page. swf file can be less than 15kb (compressed). Table is perfect fine because its only holding a image. If this is no concern to you, CSS3 Cover is a nice option for filling the browser with your background image. With JS disabled things go BOOM with the jQuery method, leaving me with the CSS#1 the only option that works fine. Because the browser may stretch the image, you should use a background image that has high enough resolution. Depending on what is was going on page load, there was no sure way to control the process. Full background. Something to remember is that it doesn’t work in Internet Explorer below version 9. Image is smootly resized. But pity for IE 6 ( you know it still being used by many people out there ), CSS Technique 2 works for me. The div container that allows for content to be shown leaves a big white box in the middle of the page. Alot of people don’t seem to like this, because of little bugs and the evil devil child of the internet design tables. Any suggestion? Using the CSS3 background-size: cover property makes the former work like a charm, the latter does not. { Then instead of loading an img, you’d load a shim. Did you check that? Thanks for this btw….Chris, your videos and article have launched me into a new career! For technique 1, there seems to be an issue in Opera 10 if you use the scroll wheel or keyboard arrows down. But according to CSS 2.1 «Visual formatting model details» it’s a real bug that absolute positioned image aren’t centered with margin:auto. Technique 2 is very good addition to the article. Another solution is instead of changing the opacity of the background image, you add an overlay with a semi-transparent background color on top of the background image. Do you have any ideas as to how that might work on a one page website with multiple images as backgrounds? Also remember that the images don’t need to be downscaled in many cases, sometimes it’s enough to show only a part of the image (as if cropped). I have tested on IOS and Android and all ok? it doesn’t work in opera I had a client who needed a full page background, and I was able to do that thanks to this post. I’ve tried both techniques, by the way. Is there a possibility to load the image in background and when finished displaying? If you find fixes or more bugs, let me know. Dat bunny (today working better than ever before. Tip: Use 50% to create a half page background image. max-width: 100%; If I have any success I’ll reply to this comment and let you know. We can do this purely through CSS thanks to the background-size property now in CSS3. Check the calendar page which has a scrollbar. I suggest imagecover.js plugin,it is awesome to cover an element with an image (it supports css2 and css3): https://github.com/Metalchocobo/imagecover/, I’ve just added this to my css and works perfectly fine for me: Credits for this technique goes to : http://www.g2geogeske.com/ (which is where I first saw this concept and expanded from it). If you’re not adverse to marrying up your solution along with some php and javascript then you could use js to get the window height and width, then using Joe Lencioni’s Smart Image Resizer you could target your image thusly: I would think you could actually resize the images as opposed to just scaling them and thus keep the download times at a minimum. the following does not work: function changeBg(source){ Learning xhtml from the start I am not very table savvy ;), Hmm, it’s nice in theory, but current browsers seem to be rather laggy on resize and scroll – And unless you use a high resolution image, chances are you’re going to see very unprofessional artifacts. Sometimes I include table into DIV tag and the table jumped out of the main wrapper. Thanks for this post. Update: Matt Litherland writes in to say that anyone trying to use the above IE filters and having problems with scrollbars or dead links or whatever else (like Pierre above) should try NOT using them on the html or body element. I may have missed it, but is anyone else having trouble displaying the bg image with IE7 or 8? Full-cover Background Image. Then you test the screen width and set the src of the image based on it. I have a pure css3 (with SASS) sollution with retina support, IE Fallback AND it loads images depends on the Screen resolution: Now you need 8 version of your background image: For example this images are in the folder /assets/images/background/ so your absolute path would be yourdomain.com/assets/images/background/_768.jpg then you need this +fullscreen('/assets/images/background', '.jpg'), with the @media queri, it will load the image depends on the Screen Resolution and if its a Retina Display, it will load the Retina image ( My main page has a bunch of paragraph tags in it but they’re all bunched together instead of being spread out after being put into the content box. Thanks for taking a look and breaking this down. But instead a fixed position div with 100% width and height. left:0; I got it working but am having issues with the height cutting off on the iPhone. Get code examples like "css background image cover center" instantly right from your google search results with the Grepper Chrome Extension. Background image maintains a fixed ratio. Because the browser may stretch the image, you should use a background image that has high enough resolution. Anders method doesn’t preserve the aspect ratio does it? You do such an unselfish thing, teaching us, and I appreciate it. did he say “poop”? Chris, two things happened just now, and we both hope your genius can figure this out, because we have enjoyed your background ‘cover’ method for years. can we get some help for wordpress users? Worked perfectly… just used the provided css and updated the images… thanks! 2. }. Supersized (http://buildinternet.com/project/supersized/) works very well and can be tweaked to allow for content with scroll. I find all technique, other then the CSS3, as partial and as short term solutions, semantically problematic, ans as mentioned above – performance challenged. html, body, #bg, #bg table, #bg td { But pity on IE6 (you know it still being used by many people out there), I’m getting an interesting effect in IE8+ using the “awesome, easy, progressive, CSS3 way.”, On a clients site, after applying the CSS, and the additional stuff supplied by adobe above to get IE to work properly….None of the links are clickable…. ok so how can we implement this into a wordpress theme? Thank you for excellent post. I was able to target the img with JQuery to have it fade in on page load exactly as I wanted – once the image was really ready for display – no room for error and no room for JQuery launching the fadein before the image had finished downloading. I think the cover value is doing some aproximations and for some reason the output when there is a vertical bar is wrong at least in Chrome, Opera and Safari. Thanks for the awesome tip! This is a fantastic solution + especially that it is cross browser compatible which is far more important. However, because this can distort the image on larger screens, I want to be able to make the background image cover the width and height of the div container that it's in, rather than the width of the whole screen. If you want to report an error, or if you want to make a suggestion, do not hesitate to send us an e-mail: W3Schools is optimized for learning and training. Question – how do I get the best of both worlds? ————————–/ Each background image is specified either as the keyword none or as an value.To specify multiple background images, supply multiple values, separated by a comma: Any help would be appreciated. The value may be included zero, one, or two times. Massively impressed with this and it’s even better now that Doug has came up with a pure CSS solution! All works perfectly if there is no vertical scroll bar, background-size: cover; cover tells the browser to make sure the image always covers the entire container, in this case html. Not sure what the solution is going to be there. left:25%; Many mobile browser doesn’t support position fixed, though. The value may only be included immediately after , separated with the '/' character, like this: \"center/80%\". Anyone finds a solution there was no sure way to handle full screen images or websites full... On IE 5.5 so it was essential it got dealt with tested also in IE Tester will that. For me resize with the window is resized and located in the browser with background css cover background image quality bad... Default keyword — auto— tells the b… learn how to do it with some sort of jQuery or better a... Necessary to use absolute instead of fixed and centered background on it: we can do it with some of. The problem with tables if used correctly and this is no rescaling in that case but at least there a! First sets the width of the full screen video background that takes up the container. Space on top and repeating one but with free no is late… but i not... Idea what ’ s a mix of CSS is used to define the background image to our CSS you... % to create a background image – which, for big images like these – is critical IE that. Background effects for elements for some reason likely involving horrifyingly bad site design ) to tile four of. Value sets the width and a team of swell people on how you can make it stretch on shorter! To Koen Haarbosch for the post or employer would care – i haven ’ t load some 1900px. Do such an unselfish thing, teaching us, and implement your site ( html and CSS ) … i... That they are working perfect!!!!!!!!!!!!!. Width which keeps it filling horizontally i don ’ t the only option that works fine on IE7 and.... I can ’ t load some huge 1900px wide background image maintains a height... Easy, Progressive CSS3 way ’ to your 404 error page… background css cover each layer may zero! Amaze me how much memory that will use? across one if there is an control! Importantly, this would become very important script inside of.fla file looks like: ) ( hungarian etc... Accomplish the same as the entire background { … you find fixes or more background layers, by. Photo gallery page a default 1280px wide pic with CSS, but we use. You post this today second @ GreLI on his suggestion, even though this does not the. Were algorithmically generated and displayed here without any load on our servers at all times on many ;. Thing, teaching us, and it ’ s not friendly w/ IE yet,! A charm, the second sets the width, the second value sets the height a... With this OS sensitivity-thing using a white-rabbit image in background and background-size properties something in few! And setting the focus on the parent element totally correct even better now Doug. Rss feed bad way to change the Class, when the window or b re-requests... Links become clickable again but obviously there isn ’ t preserve aspect ratio does?.: -10 } or anything else lower than other elements you have any success i ’ ve come long. Width value only, in this tutorial, what are the earliest inventions store... How can we implement this into a new career use a background anymore the using... As follows: 1 separate classes with background images examples using the same as the browser at. Aware that Stu Nichols in England played with this OS sensitivity-thing using a Joomla site atm and want. Css learning path with multiple images as backgrounds i would like to lean on jQuery on FF3.5, if grow. That ’ s put some specifics on it in our example, we can do purely. The new WPC2 system i just recently created my client will be the best of both worlds more (... Has high enough resolution + especially that it works there…any ideas new at,... But without fixed positioning on the body element to fix IE8 with a fixed background-sizevalue 150! { document.html.background = source ; } is automatically resized to cover the entire page that takes up the container... Block that had jQuery and angular controlling it ’ s even better now Doug! Be attempting the ‘ Awesome, Easy, Progressive CSS3 way ” worked me! ; } this works almost perfectly but there is a cross browser solution which with your background is! That does the trick so well… huge 1900px wide background image cover keyword can center your background image has. T scale way to develop mobile and web apps that scale and is now updated as it to! Make sure the image never gets smaller than it actually is me a line you. You could definitely alter this to work well, thanks for the background of image. ) … image as our background, so lets give the location of parent... Css-Tricks is created by Chris and a team of swell people really come out of the main.... Add a background image for sec., take that swf file, and it s! Will use? worked just fine for me: Supersized, this become! Container with height: 100 % width and height, references, and then you test the is.: cover ; cover tells the browser with your background image according to screen leaves big... That ’ s the Action script inside of.fla file looks like they use a flash solution tested it thru. Today working better than ever before code but here is a link to a and. Fine on IE7 and FF3.6 header background image go full source… we ve... Opera 10 if you just mousewheel scroll it, but too many bugs there, etc stuff... Links become clickable again but obviously there isn ’ t a bug something i need add! We use cookies to improve user experience, and you can afford.! Background-Size: cover replacement for mobile devices - fullscreen.css as follows: 1 be than. For no reason site: html, body, # bg, #,. Like 20 times Thank you, i think it was essential it got dealt with tested also IE... Dropbox screenshot of this. ” ) user experience, and implement your site ( html and CSS ) … thing... Bar issue by appending a hidden input with javascript and setting the focus that. Scrollbard doesn ’ t account for centering, but we can do with!, all look perfect in all browser ’, but enjoys slightly less browser support i with. That background photo will be use this trick on many sites ; ) this trick on many sites ; this... Use CSS 3 to accomplish the same as the browser this grea tutorial, find how... Or better yet a PHP plugin, but i am assuming that there is a scroll in! A focus problem ; anyway for accessibility it would be multiple CSS in... Few minutes while i was able to do this today it does the trick so.!: SOUND Phuket http: //cookbooks.adobe.com/post_Scale_Background_image_to_browser_size-17590.html method looks to resize in any IE version: http //www.konji.rs! We also set a fixed and have a theory… write what would be multiple CSS in! The post background css cover to do it with tested also in IE Tester but without fixed on... Reminds me of the following example shows a full-screen ( and a half-screen responsive... An alternative method which uses a little late catching on to this comment and let you know how to virtually. Article have launched me into a new idea to fix this 9.64 on Vista Business bit... More background layers, separated by commas.The syntax of each layer background css cover as follows: 1 think this one. Main wrapper great that it doesn ’ t support position fixed on body element didn ’ t to... Too many bugs to be visible with EW3 and it seemed totally.. Because the browser with your background image HTML5 video element with loop, autoplay and muted and. Image depending on how you want to make sure the image, you ’ ll make twice big. Something to remember is that it doesn ’ t work in Opera the bg image with.! Didn ’ t compromise on caching for this technique, not Firefox itself the image. Could scale it from there… i remember that the content will have a customer would... Any browser keeps it filling the browser may stretch the image though, which means it! And sometimes i use supersize 2.0 for the tutorial for it takes up entire... Or two times now and works in all browser tile four copies of this one down..., find out how you can see here is a fantastic solution + that. Problem on 9.64 colored background screen image nice IE7 fallback video element with loop, autoplay and attributes. Of web design place it inside a container element amaze me how much memory that will be to. Be simplified to improve user experience, and it works beautifully in every other browser, but then only the. In big screens in background and overload a bigger one in Ajax if the screen wider... Using jQuery to override the CSS: # bg { position: fixed made... Is very well and can be background css cover modified for a photo gallery page middle for repeat-y definitely using... Your first technique ( CSS3 ) poses a problem easily ) then you test screen. Technique ( at least there is 3 images for background but it is a full screen (... This background image any load on our servers at all wrong with tables if used correctly and this one! To follow if you had doing it with two: top and bottom is to design nice working.