How to prevent the background image from getting blurry

css background image
blur background image on hover
css transform scale image quality
css body background image blur
image resize blurry
fade background image css
css blur
css blur image sharp edges

I need to know how to get the background image to not be blurry when text is over it in CSS as it spoils the look of my website if it's blurry.

My CSS is:

background: #ff0000 url(img/rain.jpg) top center repeat-y; 
background-size: 100%; 

But when I load it up where there is text that line goes blurry and I don't want it to so how do I do this?

Fiddle example

Try to add:

image-rendering: -webkit-optimize-contrast;

Every single background image gets blurry on my tribute page (Even , Learn how to create a blurry background image with CSS. Blur Background Image. Note: This example does not work in Edge 12, IE 11 or earlier versions. Try it  Cropping is adjusting the edges of an image to cut out that unwanted background distraction to focus on what’s really important. It’s best to edit your image with a plan in mind. Keep those tips you picked up about resolution and resizing in mind as you photo crop as well. Tips for a good crop: The closer you crop, the smaller the image becomes.

Try adding this to the code: image-rendering: pixelated; For me it worked perfectly. you can also try - image-rendering: -webkit-optimize-contrast;

How To Create a Blurred Background Image, The image-rendering property defines how the browser should to apply aliasing to this scaled image in order to prevent distortion, but this This property can be applied to background-images, canvas crisp-edges currently requires vendor prefixes ( -moz-crisp-edges ) to get the best support possible. Just press Windows+L to lock your computer, and you’ll see the login screen with the background image in full focus, no blur added. To undo this change, you can just return here, locate the “DisableAcrylicBackgroundOnLogon” value, and delete it or set it to “0”.

use of background-size: cover;background-position:50% 50%; will help you..

* {
font-family: Calibri, Comic Sans MS, Serif;
background: #ff0000 url(http://www.coolguysite.co.uk/blog/templates/default/img/rain.jpg)   top center repeat-y;
background-size: cover;
background-position:50% 50%;
}

UPDATED FIDDLE

image-rendering, The “Blur Up” Technique for Loading Background Images We may try to avoid the downloading of heavy images, but sometimes we make the tradeoff to Get the URL to the large image from the inline CSS, and preload it using JavaScript. I need to know how to get the background image to not be blurry when text is over it in CSS as it spoils the look of my website if it's blurry. My CSS is: background: #ff0000 url(img/rain.jpg) top center repeat-y; background-size: 100%; But when I load it up where there is text that line goes blurry and I don't want it to so how do I do this?

You can use image-rendering: pixelated. Here is an example from the Mozilla Developer Network:

.pixelated {
  image-rendering: pixelated;
  -ms-interpolation-mode: nearest-neighbor;
}

https://developer.mozilla.org/en-US/docs/Web/CSS/image-rendering

https://jsfiddle.net/9dtj2wkq/

The "Blur Up" Technique for Loading Background Images, As retina screens and HD monitors are becoming more common developers must account for higher resolution images and icons. Given the  A possibility is to put your camera in an 'aperture priority' mode, which is some form of auto mode with the exception that you are in charge of the aperture. (Aperture influences the depth of field, causing blurry foregrounds/backgrounds) Once in that mode you can close down the aperture (increasing the number).

I got it by doing:

background: transparent;

to the h2 and p elements.

Fixing Blurry Logos and Background Images, Using filter: blur(2px) on a background image that is set to be the cover image of the whole page, can will result in ugly edges. I tried to get rid of  One common cause of blurry images is camera shake. You can avoid that issue by stabilizing your camera with a tripod. Additionally, using the timer setting on your camera or a remote-control shutter release can help to eliminate camera shake.

CSS Background Image Blur without blurry edges, Blurry desktop wallpaper on a Windows 8 system may be an indication of a use a photo-editing program to sharpen the image and reduce its blurriness. If the shutter speed is too slow, the camera picks up that movement, and it looks like a blurry photo. Make sure your shutter speed is faster than the equivalent of your focal length. For instance, if you are zoomed to 100mm, your shutter speed should be 1/100th of a second or faster to avoid camera shake.

How to Fix Blurry Desktop Background Pictures on Windows 8 , PNG files will not get blurry when transcoded for wallpaper use. Go to where your picture is stored. Right-click the picture file, choose "Open  Every time i set a background, it is set up into tiles, so i center it then stretch it, but it is too blurry. Update : The screen resolution for my computer is 1280 by 800.

why is my wallpaper always blurry and how do i fix it???, The background-size CSS property lets you resize the background image of an element, overriding the default behavior of tiling the image at its  Emphasize What’s Important - Make Photo with Blurred Background!

Comments
  • Wow. I'm amazed. You managed to put totally no context into this question. Without knowing the context, this is just unanswerable garbage. Please add code, screenshot, URL, or at least something adequstely describing the problem, what lead to it, and where you're stuck at... You might also want to read the FAQ, it could be mutually beneficial for us all.
  • My code is: background: #ff0000 url(img/rain.jpg) top center repeat-y; background-size: 100%; But when I load it up where there is text that line goes blurry and I don't want it to so how do I do this?
  • put the code in question not in comment ...and if posible give us a live example in jsfiddle.net
  • Ok thank you, I thought jsfiddle was only for JavaScript
  • @JoshKeighley the code you pasted is nice. But sadly, not relevant. The relevant thing would be to see what is with the text part that is there. By blurry do you mean "get grayish under the text"? It could be that you have a div whose background is not entirely transparent, but say just 50%. You could easily see what is going on, and be also able to correct it using tools like the CSS tools in Firebug...
  • They should have it inbuilt in the browser with this feature . Why would someone want their images blurred. Duh
  • it will look terrible if you are scaling down the image with this answer
  • How does transparent background prevent the background image from getting blurry ...