About 803,000 results
Open links in new tab
  1. How to make full screen background in a web page

    Dec 17, 2017 · I found the reason why there is always a white boder of the background image, if I put the image in a 'div' element inside 'body'. But the image can be full screen, if I put it as background image of 'body'. Because the default 'margin' of 'body' is not zero. After add this css, the background image can be full screen even I put it in 'div'.

  2. html - How to set background image to full screen - Stack Overflow

    Jun 22, 2015 · I want to set a background Image into my html page. So I have this code: body{ background: url("background_image.jpg") no-repeat scroll center center / 100% auto ...

  3. How do I make my background-image fit the entire screen CSS

    Mar 27, 2018 · background-size:cover; Resize the background image to cover the entire container, even if it has to stretch the image or cut a little bit off one of the edges background-size:contain; Resize the background image to make sure the image is fully visible So it does not repeat: background-repeat: no-repeat;

  4. How to make background-image full-screen with html+css

    Apr 12, 2022 · I want to create background-image full-screen in HTML, and CSS I have set all properties for background image. This is my background-image on folder.[![enter image description here][1]][1] I try to...

  5. html - Image in full screen with img tag - Stack Overflow

    I need the image to be full width and height and centered inside its container. My problem is, when I resize the window width, my image becomes small and its height doesn't follow the window height. I need the same behaviour as background-size: cover but with the image tag .

  6. css - Full-screen responsive background image - Stack Overflow

    May 14, 2013 · Both CSS methods (#2 more than #1) work in IE7/8, jquery method works in IE7+. I don't know what you're referring to when you say,"did you look at the website?"

  7. Set background image according to screen resolution

    Jun 30, 2010 · I would like to be able to change my webpage background image according to the screen resolution the user uses so: if screen resolution is greater than or equal to 1200*600 then background =

  8. html - Fit website background image to screen size - Stack Overflow

    I'm just starting on a website and I already encounter a small problem where I can't find a specific solution to. I wanted to make my website background fit any screen size in width, height does not

  9. html - Fullscreen responsive background image in CSS - Stack …

    Sep 1, 2013 · I want to make this image as the background image of my webpage. However , the problem is that the image doesn't cover the whole of the page, as you may see in this preview, and it gets repeated at the rightmost end . Is there a way so that the image covers the whole page (be it any way , stretching , re-sizing , or something new).

  10. Best way to implement background image on HTML or body

    Nov 10, 2022 · For documents whose root element is an HTML "HTML" element or an XHTML "html" element that has computed values of 'transparent' for 'background-color' and 'none' for 'background-image', user agents must instead use the computed value of the background properties from that element's first HTML "BODY" element or XHTML "body" element child when ...